public class TraceWriterAdapter
extends java.lang.Object
jdbc:h2:˜/test;TRACE_LEVEL_FILE=4The logger name is 'h2database'.
| Constructor and Description |
|---|
TraceWriterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled(int level)
Check the given trace / log level is enabled.
|
void |
setName(java.lang.String name)
Set the name of the database or trace object.
|
void |
write(int level,
int moduleId,
java.lang.String s,
java.lang.Throwable t)
Write a message.
|
void |
write(int level,
java.lang.String module,
java.lang.String s,
java.lang.Throwable t)
Write a message.
|
public void setName(java.lang.String name)
name - the new namepublic boolean isEnabled(int level)
level - the levelpublic void write(int level,
int moduleId,
java.lang.String s,
java.lang.Throwable t)
level - the trace levelmoduleId - the id of the modules - the messaget - the exception (may be null)public void write(int level,
java.lang.String module,
java.lang.String s,
java.lang.Throwable t)
level - the trace levelmodule - the name of the modules - the messaget - the exception (may be null)