Package org.jboss.modules.log
Class StreamModuleLogger
- java.lang.Object
-
- org.jboss.modules.log.StreamModuleLogger
-
- All Implemented Interfaces:
ModuleLogger
public final class StreamModuleLogger extends Object implements ModuleLogger
AModuleLogger
implementation that logs all output (including trace) to an output or print stream.- Author:
- thomas.diesler@jboss.com, David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description StreamModuleLogger(OutputStream stream)
Construct a new instance.StreamModuleLogger(PrintStream stream)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
classDefined(String name, Module module)
void
classDefineFailed(Throwable throwable, String className, Module module)
void
greeting()
void
moduleDefined(ModuleIdentifier identifier, 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)
-
-
-
Constructor Detail
-
StreamModuleLogger
public StreamModuleLogger(PrintStream stream)
Construct a new instance.- Parameters:
stream
- the print stream to write to
-
StreamModuleLogger
public StreamModuleLogger(OutputStream stream)
Construct a new instance.- Parameters:
stream
- the output stream to write to
-
-
Method Detail
-
trace
public void trace(String message)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(String format, Object arg1)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(String format, Object arg1, Object arg2, Object arg3)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(String format, Object... args)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(Throwable t, String message)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(Throwable t, String format, Object arg1)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(Throwable t, String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(Throwable t, String format, Object arg1, Object arg2, Object arg3)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(Throwable t, String format, Object... args)
- Specified by:
trace
in interfaceModuleLogger
-
greeting
public void greeting()
- Specified by:
greeting
in interfaceModuleLogger
-
moduleDefined
public void moduleDefined(ModuleIdentifier identifier, ModuleLoader moduleLoader)
- Specified by:
moduleDefined
in interfaceModuleLogger
-
classDefineFailed
public void classDefineFailed(Throwable throwable, String className, Module module)
- Specified by:
classDefineFailed
in interfaceModuleLogger
-
classDefined
public void classDefined(String name, Module module)
- Specified by:
classDefined
in interfaceModuleLogger
-
providerUnloadable
public void providerUnloadable(String name, ClassLoader loader)
- Specified by:
providerUnloadable
in interfaceModuleLogger
-
-