Package org.jboss.modules.log
Class JDKModuleLogger
- java.lang.Object
-
- org.jboss.modules.log.JDKModuleLogger
-
- All Implemented Interfaces:
ModuleLogger
public final class JDKModuleLogger extends java.lang.Object implements ModuleLogger
AModuleLogger
which logs to a JDK logging category.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description JDKModuleLogger()
Construct a new instance using the categoryorg.jboss.modules
.JDKModuleLogger(java.lang.String category)
Construct a new instance.JDKModuleLogger(java.util.logging.Logger logger, java.util.logging.Logger defineLogger)
Deprecated.UseJDKModuleLogger(String)
instead.
-
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
overlayRootNotReadable(java.io.File file)
void
overlaysDirectoryNotReadable(java.io.File file)
void
overlaysMetadataNotReadable(java.io.File file)
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
-
JDKModuleLogger
@Deprecated public JDKModuleLogger(java.util.logging.Logger logger, java.util.logging.Logger defineLogger)
Deprecated.UseJDKModuleLogger(String)
instead.Construct a new instance.- Parameters:
logger
- the main logger to write todefineLogger
- the main logger to write class-define-related trace messages to
-
JDKModuleLogger
public JDKModuleLogger(java.lang.String category)
Construct a new instance.- Parameters:
category
- the name of the logger category to write to
-
JDKModuleLogger
public JDKModuleLogger()
Construct a new instance using the categoryorg.jboss.modules
.
-
-
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
-
overlaysDirectoryNotReadable
public void overlaysDirectoryNotReadable(java.io.File file)
- Specified by:
overlaysDirectoryNotReadable
in interfaceModuleLogger
-
overlaysMetadataNotReadable
public void overlaysMetadataNotReadable(java.io.File file)
- Specified by:
overlaysMetadataNotReadable
in interfaceModuleLogger
-
overlayRootNotReadable
public void overlayRootNotReadable(java.io.File file)
- Specified by:
overlayRootNotReadable
in interfaceModuleLogger
-
-