org.postgresql.pljava.internal

Class ELogHandler


public class ELogHandler
extends Handler

Provides access to the loggin mechanism of the PostgreSQL server.

Field Summary

static int
LOG_DEBUG1
static int
LOG_DEBUG2
static int
LOG_DEBUG3
static int
LOG_DEBUG4
static int
LOG_DEBUG5
Debugging messages, in categories of decreasing detail.
static int
LOG_ERROR
user error - abort transaction; return to known state
static int
LOG_FATAL
fatal error - abort process
static int
LOG_INFO
Informative messages that are always sent to client; is not affected by client_min_messages
static int
LOG_LOG
Server operational messages; sent only to server log by default.
static int
LOG_NOTICE
Helpful messages to users about query operation; sent to client and server log by default.
static int
LOG_PANIC
take down the other backends with me
static int
LOG_WARNING
Warnings

Constructor Summary

ELogHandler()

Method Summary

void
close()
This is a no-op.
void
flush()
This is a no-op.
static Level
getPgLevel()
Obtains the "log_min_messages" configuration variable and translates it into a Level object.
static void
init()
void
publish(LogRecord record)

Field Details

LOG_DEBUG1

public static final int LOG_DEBUG1
Field Value:
14

LOG_DEBUG2

public static final int LOG_DEBUG2
Field Value:
13

LOG_DEBUG3

public static final int LOG_DEBUG3
Field Value:
12

LOG_DEBUG4

public static final int LOG_DEBUG4
Field Value:
11

LOG_DEBUG5

public static final int LOG_DEBUG5
Debugging messages, in categories of decreasing detail.
Field Value:
10

LOG_ERROR

public static final int LOG_ERROR
user error - abort transaction; return to known state
Field Value:
20

LOG_FATAL

public static final int LOG_FATAL
fatal error - abort process
Field Value:
21

LOG_INFO

public static final int LOG_INFO
Informative messages that are always sent to client; is not affected by client_min_messages
Field Value:
17

LOG_LOG

public static final int LOG_LOG
Server operational messages; sent only to server log by default.
Field Value:
15

LOG_NOTICE

public static final int LOG_NOTICE
Helpful messages to users about query operation; sent to client and server log by default.
Field Value:
18

LOG_PANIC

public static final int LOG_PANIC
take down the other backends with me
Field Value:
22

LOG_WARNING

public static final int LOG_WARNING
Warnings
Field Value:
19

Constructor Details

ELogHandler

public ELogHandler()

Method Details

close

public void close()
            throws SecurityException
This is a no-op.

flush

public void flush()
This is a no-op.

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.

init

public static void init()

publish

public void publish(LogRecord record)

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT