Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.intel.cosbench.log
Class LogFactory

    java.lang.Object
      com.intel.cosbench.log.LogFactory

    public class LogFactory

extends java.lang.Object

A Factory class to create different LogManager based on log name, by default log4j LogManager will use.

Author:
  ywang19

Field Summary
`static java.lang.String` | `DEFAULT_LOGMGR`

Constructor Summary
`LogFactory()`

Method Summary
`static LogManager` | `createLogManager()`
`static LogManager` | `createLogManager(java.lang.String logmgr)` The method creates one LogManager instance by provided class name.
`static Logger` | `getSystemLogger()`
`static LogManager` | `getSystemLogManager()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_LOGMGR

    public static final java.lang.String DEFAULT_LOGMGR

See Also:
  Constant Field Values

Constructor Detail

### LogFactory

    public LogFactory()

Method Detail

### createLogManager

    public static LogManager createLogManager()

### createLogManager

    public static LogManager createLogManager(java.lang.String logmgr)

  The method creates one LogManager instance by provided class name.

  Parameters:
    `logmgr` - the class name for log manager
  Returns:
    one new LogManager instance created by logmgr name, if any exceptions, will return default log4j LogManager.

### getSystemLogger

    public static Logger getSystemLogger()

### getSystemLogManager

    public static LogManager getSystemLogManager()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD