TraceWriter

The backend of the trace system must implement this interface. Two implementations are supported: the (default) native trace writer implementation that can write to a file and to system out, and an adapter that uses SLF4J (Simple Logging Facade for Java).

Methods
boolean isEnabled(int level)
Check the given trace / log level is enabled.
boolean isEnabled(int level)
Check the given trace / log level is enabled.
Parameters:
level - the level
Returns:
true if the level is enabled
void setName(String name)
Set the name of the database or trace object.
void setName(String name)
Set the name of the database or trace object.
Parameters:
name - the new name
void write(int level, String module, String s, Throwable t)
Write a message.
void write(int level, String module, String s, Throwable t)
Write a message.
Parameters:
level - the trace level
module - the name of the module
s - the message
t - the exception (may be null)
void write(int level, int moduleId, String s, Throwable t)
Write a message.
void write(int level, int moduleId, String s, Throwable t)
Write a message.
Parameters:
level - the trace level
moduleId - the id of the module
s - the message
t - the exception (may be null)