There are several directories named log in a Postgres installation.
You have pg_xlog, pg_log and pg_clog.
These are all important but I’ll talk about the others another time.
Pg_clog is the commit log. It is generally a small folder that you should never have a reason to look at. (note that from version 10 of postgres the pg_clog directory is being renamed to pg_xact I will continue to refer to it as pg_clog in this document but the functioning of both is the same)
Importantly, you can never delete anything from that directory. If you do your database will become unusable and you will need to recreate it from a backup.
Read more