Class ELogHandler

java.lang.Object
java.util.logging.Handler
org.postgresql.pljava.elog.ELogHandler

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

    • LOG_DEBUG5

      public static final int LOG_DEBUG5
      Debugging messages, in categories of decreasing detail.
      See Also:
    • LOG_DEBUG4

      public static final int LOG_DEBUG4
      See Also:
    • LOG_DEBUG3

      public static final int LOG_DEBUG3
      See Also:
    • LOG_DEBUG2

      public static final int LOG_DEBUG2
      See Also:
    • LOG_DEBUG1

      public static final int LOG_DEBUG1
      See Also:
    • LOG_LOG

      public static final int LOG_LOG
      Server operational messages; sent only to server log by default.
      See Also:
    • 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:
    • 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:
    • LOG_WARNING

      public static final int LOG_WARNING
      Warnings
      See Also:
    • LOG_ERROR

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

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

      public static final int LOG_PANIC
      take down the other backends with me
      See Also:
  • Constructor Details

    • ELogHandler

      public ELogHandler()
  • Method Details

    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • flush

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

      public void close() throws SecurityException
      This is a no-op.
      Specified by:
      close in class Handler
      Throws:
      SecurityException
    • 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.