public class LoggerFactory extends java.lang.Object implements LoggerFactoryIF
Modifier and Type | Method and Description |
---|---|
protected void |
clearHandler(java.util.logging.Logger logger) |
void |
configLogger(XSDContextIF ctx,
java.util.logging.Logger logger,
Loghandler descriptor,
boolean clear)
Configure a logger using the tag descriptor of an xml tree.
|
protected ImplementationIF |
createHandler(XSDContextIF ctx,
Loghandler implementation) |
java.util.logging.Handler |
createLogHandler(XSDContextIF ctx,
ImplementationIF hdl,
ImplementationIF fmt,
ImplementationIF fil)
Create a log handler.
|
java.util.logging.Handler |
createLogHandler(XSDContextIF ctx,
Loghandler logDescriptor)
Create a log handler that is described by the descriptor.
|
static LoggerFactory |
getInstance()
Get an instance of a factory.
|
protected java.io.OutputStream |
getOutputStream(java.lang.String filename,
java.lang.String urlString) |
java.io.OutputStream |
getOutputStream(XSDContextIF ctx,
File fileDesc)
Open a output stream according to the file specification of a XML tree.
|
public static LoggerFactory getInstance()
public void configLogger(XSDContextIF ctx, java.util.logging.Logger logger, Loghandler descriptor, boolean clear) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.Exception
configLogger
in interface LoggerFactoryIF
ctx
- The context.logger
- the logger to be configured.descriptor
- the logger descriptor.java.io.FileNotFoundException
- If the optional jar wa not found.java.io.IOException
- if the optional jar cannot be read.java.lang.ClassNotFoundException
- if a class was not found.java.lang.InstantiationException
- If it not possible to instantiate a class.java.lang.IllegalAccessException
- If it is not allowed to access the class.java.lang.Exception
- if the implementation has a problem with the arguments.protected void clearHandler(java.util.logging.Logger logger)
public java.util.logging.Handler createLogHandler(XSDContextIF ctx, Loghandler logDescriptor) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.Exception
createLogHandler
in interface LoggerFactoryIF
ctx
- The context.logDescriptor
- the descriptor of the handler.java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.Exception
public java.util.logging.Handler createLogHandler(XSDContextIF ctx, ImplementationIF hdl, ImplementationIF fmt, ImplementationIF fil)
createLogHandler
in interface LoggerFactoryIF
ctx
- The context.hdl
- the handler implementationfmt
- the format implementationfil
- the filter implementation.protected ImplementationIF createHandler(XSDContextIF ctx, Loghandler implementation) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, InvalidDescriptorException, InvalidArgumentException, InitializationFailedException
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
InvalidDescriptorException
InvalidArgumentException
InitializationFailedException
public java.io.OutputStream getOutputStream(XSDContextIF ctx, File fileDesc) throws java.io.IOException
getOutputStream
in interface LoggerFactoryIF
ctx
- the contextfileDesc
- the file specificationjava.io.IOException
protected java.io.OutputStream getOutputStream(java.lang.String filename, java.lang.String urlString) throws java.io.IOException
java.io.IOException