Why does LOG have higher priority than ERROR and WARNING?

From: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Why does LOG have higher priority than ERROR and WARNING?
Date: 2009-09-11 09:07:02
Message-ID: 20090911175340.E257.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

LOG messages have higher priority than ERROR and WARNING
in log_min_messages (PANIC > FATAL > LOG > ERROR > WARNING) now.
Can I reorder them to ERROR > WARNING > LOG ? It makes a difference
to "per-destination minimum message levels" feature that I working on.

LOG messages are often used for performance logging. On the other hand,
WARNING and ERROR messages report something bad. It should be no surprise
that users think ERRORs and WARNINGs are more important than LOGs.
So, I think we should allow users to set log_min_messages to report
only PANIC, FATAL, ERROR and WARNING messages in server logs.

Am I missing something?

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aidan Van Dyk 2009-09-11 10:57:27 Re: RfD: more powerful "any" types
Previous Message Heikki Linnakangas 2009-09-11 08:44:45 Re: [COMMITTERS] pgsql: On Windows, when a file is deleted and another process still has