ModuleLogger
public final class StreamModuleLogger extends Object implements ModuleLogger
ModuleLogger
implementation that logs all output (including trace) to an output or print stream.Constructor | Description |
---|---|
StreamModuleLogger(OutputStream stream) |
Construct a new instance.
|
StreamModuleLogger(PrintStream stream) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
classDefined(String name,
Module module) |
|
void |
classDefineFailed(Throwable throwable,
String className,
Module module) |
|
void |
greeting() |
|
void |
moduleDefined(String name,
ModuleLoader moduleLoader) |
|
void |
providerUnloadable(String name,
ClassLoader loader) |
|
void |
trace(String message) |
|
void |
trace(String format,
Object arg1) |
|
void |
trace(String format,
Object... args) |
|
void |
trace(String format,
Object arg1,
Object arg2) |
|
void |
trace(String format,
Object arg1,
Object arg2,
Object arg3) |
|
void |
trace(Throwable t,
String message) |
|
void |
trace(Throwable t,
String format,
Object arg1) |
|
void |
trace(Throwable t,
String format,
Object... args) |
|
void |
trace(Throwable t,
String format,
Object arg1,
Object arg2) |
|
void |
trace(Throwable t,
String format,
Object arg1,
Object arg2,
Object arg3) |
moduleDefined
public StreamModuleLogger(PrintStream stream)
stream
- the print stream to write topublic StreamModuleLogger(OutputStream stream)
stream
- the output stream to write topublic void trace(String message)
trace
in interface ModuleLogger
public void trace(String format, Object arg1)
trace
in interface ModuleLogger
public void trace(String format, Object arg1, Object arg2)
trace
in interface ModuleLogger
public void trace(String format, Object arg1, Object arg2, Object arg3)
trace
in interface ModuleLogger
public void trace(String format, Object... args)
trace
in interface ModuleLogger
public void trace(Throwable t, String message)
trace
in interface ModuleLogger
public void trace(Throwable t, String format, Object arg1)
trace
in interface ModuleLogger
public void trace(Throwable t, String format, Object arg1, Object arg2)
trace
in interface ModuleLogger
public void trace(Throwable t, String format, Object arg1, Object arg2, Object arg3)
trace
in interface ModuleLogger
public void trace(Throwable t, String format, Object... args)
trace
in interface ModuleLogger
public void greeting()
greeting
in interface ModuleLogger
public void moduleDefined(String name, ModuleLoader moduleLoader)
moduleDefined
in interface ModuleLogger
public void classDefineFailed(Throwable throwable, String className, Module module)
classDefineFailed
in interface ModuleLogger
public void classDefined(String name, Module module)
classDefined
in interface ModuleLogger
public void providerUnloadable(String name, ClassLoader loader)
providerUnloadable
in interface ModuleLogger
Copyright © 2022 JBoss by Red Hat. All rights reserved.