Package org.jboss.modules.log
Class StreamModuleLogger
- java.lang.Object
-
- org.jboss.modules.log.StreamModuleLogger
-
- All Implemented Interfaces:
ModuleLogger
public final class StreamModuleLogger extends java.lang.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(java.io.OutputStream stream)
Construct a new instance.StreamModuleLogger(java.io.PrintStream stream)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
classDefined(java.lang.String name, Module module)
void
classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
void
greeting()
void
moduleDefined(java.lang.String name, ModuleLoader moduleLoader)
void
trace(java.lang.String message)
void
trace(java.lang.String format, java.lang.Object arg1)
void
trace(java.lang.String format, java.lang.Object... args)
void
trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
void
trace(java.lang.Throwable t, java.lang.String message)
void
trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1)
void
trace(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)
void
trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.modules.log.ModuleLogger
moduleDefined
-
-
-
-
Constructor Detail
-
StreamModuleLogger
public StreamModuleLogger(java.io.PrintStream stream)
Construct a new instance.- Parameters:
stream
- the print stream to write to
-
StreamModuleLogger
public StreamModuleLogger(java.io.OutputStream stream)
Construct a new instance.- Parameters:
stream
- the output stream to write to
-
-
Method Detail
-
trace
public void trace(java.lang.String message)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.String format, java.lang.Object arg1)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.String format, java.lang.Object... args)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.Throwable t, java.lang.String message)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.Throwable t, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
- Specified by:
trace
in interfaceModuleLogger
-
trace
public void trace(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)
- Specified by:
trace
in interfaceModuleLogger
-
greeting
public void greeting()
- Specified by:
greeting
in interfaceModuleLogger
-
moduleDefined
public void moduleDefined(java.lang.String name, ModuleLoader moduleLoader)
- Specified by:
moduleDefined
in interfaceModuleLogger
-
classDefineFailed
public void classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
- Specified by:
classDefineFailed
in interfaceModuleLogger
-
classDefined
public void classDefined(java.lang.String name, Module module)
- Specified by:
classDefined
in interfaceModuleLogger
-
-