public class TraceWriterAdapter extends 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(String name)
Set the name of the database or trace object.
|
void |
write(int level,
int moduleId,
String s,
Throwable t)
Write a message.
|
void |
write(int level,
String module,
String s,
Throwable t)
Write a message.
|
public void setName(String name)
name
- the new namepublic boolean isEnabled(int level)
level
- the levelpublic void write(int level, int moduleId, String s, Throwable t)
level
- the trace levelmoduleId
- the id of the modules
- the messaget
- the exception (may be null)Copyright © 2017 JBoss by Red Hat. All rights reserved.