Class ELogHandler


  • public class ELogHandler
    extends Handler
    Provides access to the loggin mechanism of the PostgreSQL server.
    Author:
    Thomas Hallgren
    • Field Detail

      • LOG_DEBUG5

        public static final int LOG_DEBUG5
        Debugging messages, in categories of decreasing detail.
        See Also:
        Constant Field Values
      • LOG_LOG

        public static final int LOG_LOG
        Server operational messages; sent only to server log by default.
        See Also:
        Constant Field Values
      • LOG_INFO

        public static final int LOG_INFO
        Informative messages that are always sent to client; is not affected by client_min_messages
        See Also:
        Constant Field Values
      • LOG_NOTICE

        public static final int LOG_NOTICE
        Helpful messages to users about query operation; sent to client and server log by default.
        See Also:
        Constant Field Values
      • LOG_ERROR

        public static final int LOG_ERROR
        user error - abort transaction; return to known state
        See Also:
        Constant Field Values
      • LOG_FATAL

        public static final int LOG_FATAL
        fatal error - abort process
        See Also:
        Constant Field Values
      • LOG_PANIC

        public static final int LOG_PANIC
        take down the other backends with me
        See Also:
        Constant Field Values
    • Constructor Detail

      • ELogHandler

        public ELogHandler()
    • Method Detail

      • flush

        public void flush()
        This is a no-op.
        Specified by:
        flush in class Handler
      • init

        public static void init()
      • getPgLevel

        public static Level getPgLevel()
        Obtains the "log_min_messages" configuration variable and translates it into a Level object.
        Returns:
        The Level that corresponds to the configuration variable.