Show TOC

Background documentationSimpleLogger Class Locate this document in the navigation structure

 

This new class is easier to use than the methods in Category and Location.

It contains less output methods, providing enough functionality for your logging/tracing tasks.

SimpleLogger Method

Parameters

Description

public static boolean isWritable

(int severity, LogController lc)

Determines if a message with provided severity passes Log Controller's severity check. If so, the message is written.

public static LogRecord log

(int severity, Category category, Location location, String message, String messageID)

Logs message with specified severity and emits it to the Location parameter.

public static LogRecord log

(int severity, Category category, Location location, String message, String messageID, Object[] args)

Logs message with specified severity and emits it to the Location parameter. Replaces argument values directly in the log message

public static LogRecord trace

(int severity, Location location, String message)

Traces a message with specified severity.

public static LogRecord trace

(int severity, Location location, String message, String messageID)

Traces a message with specified severity.

public static LogRecord trace

(int severity, Location location, String message, St ring messageID, Object[] args)

Traces a message with specified severity. Replaces argument values directly in the trace message.

public static LogRecord traceThrowable

(int severity, Location location, String message, String messageID, Object[] args, Throwable exc)

Traces exception and its stack trace with the specified severity.

public static LogRecord traceThrowable

(int severity, Location location, String message, String messageID, Throwable exc)

Traces exception and its stack trace with the specified severity.

public static LogRecord traceThrowable

(int severity, Location location, String message, Throwable exc)

Traces exception and its stack trace with the specified severity.