Christophe Pettus: All Your GUCs in a Row: log_min_messages, log_min_error_statement, and log_error_verbosity
Three parameters control what reaches your server log: a severity floor, whether to attach the triggering SQL, and how many fields each message prints.