public class LogFactoryImpl extends LogFactory
DIAGNOSTICS_DEST_PROPERTY
Constructor and Description |
---|
LogFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Log |
getInstance(Class clazz)
Convenience method to derive a name from the specified class and call
getInstance(String) with it. |
Log |
getInstance(String name)
Construct (if necessary) and return a
Log instance, using
the factory |
protected Log |
newInstance(String name)
Create and return a new Log instance for the specified name.
|
closeLogFactoryDiagPrintStream, createFactory, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, getObjectId, handleThrowable, isDiagnosticsEnabled, logRawDiagnostic, newFactory
public Log getInstance(Class clazz) throws LogConfigException
getInstance(String)
with it.getInstance
in class LogFactory
clazz
- Class for which a suitable Log name will be derivedLogConfigException
- if a suitable Log
instance cannot
be returnedprotected Log newInstance(String name) throws LogConfigException
name
- Name of the new loggerLogConfigException
- if a new instance cannot be createdpublic Log getInstance(String name) throws LogConfigException
Construct (if necessary) and return a Log
instance, using
the factory
getInstance
in class LogFactory
name
- Logical name of the Log
instance to be returned
(the meaning of this name is only known to the underlying logging
implementation that is being wrapped)LogConfigException
- if a suitable Log
instance cannot
be returnedHDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved