java.lang.Object
java.util.logging.Handler
org.postgresql.pljava.elog.ELogHandler
Provides access to the loggin mechanism of the PostgreSQL server.
- Author:
- Thomas Hallgren
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Debugging messages, in categories of decreasing detail.static final int
user error - abort transaction; return to known statestatic final int
fatal error - abort processstatic final int
Informative messages that are always sent to client; is not affected by client_min_messagesstatic final int
Server operational messages; sent only to server log by default.static final int
Helpful messages to users about query operation; sent to client and server log by default.static final int
take down the other backends with mestatic final int
Warnings -
Constructor Summary
-
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Field Details
-
LOG_DEBUG5
public static final int LOG_DEBUG5Debugging 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_LOGServer operational messages; sent only to server log by default.- See Also:
-
LOG_INFO
public static final int LOG_INFOInformative messages that are always sent to client; is not affected by client_min_messages- See Also:
-
LOG_NOTICE
public static final int LOG_NOTICEHelpful messages to users about query operation; sent to client and server log by default.- See Also:
-
LOG_WARNING
public static final int LOG_WARNINGWarnings- See Also:
-
LOG_ERROR
public static final int LOG_ERRORuser error - abort transaction; return to known state- See Also:
-
LOG_FATAL
public static final int LOG_FATALfatal error - abort process- See Also:
-
LOG_PANIC
public static final int LOG_PANICtake down the other backends with me- See Also:
-
-
Constructor Details
-
ELogHandler
public ELogHandler()
-
-
Method Details
-
publish
-
flush
public void flush()This is a no-op. -
close
This is a no-op.- Specified by:
close
in classHandler
- Throws:
SecurityException
-
init
public static void init() -
getPgLevel
Obtains the "log_min_messages" configuration variable and translates it into aLevel
object.- Returns:
- The Level that corresponds to the configuration variable.
-