Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.management.runtime.component
Class ComponentLogger
All Implemented Interfaces:
       ComponentLoggerMBean

public class ComponentLogger      
Utility class to aid in creation of Component file logger
An
implementation of an mbean that facilitates in setting runtime log levels.
Author:
msimonsen
Implements:
ComponentLoggerMBean
 
Links:
Implementation Implementation Link
to Interface ComponentLoggerMBean
Utility class to aid in creation of Component file logger
An
implementation of an mbean that facilitates in setting runtime log levels.
Author:
msimonsen
 
 

Nested Class Summary
class
Field Summary
private final static String
private ConsoleHandler
private String
private static String
private static boolean
private static int
private static int
private static String
private FileHandler
private boolean
private boolean
private static String
private final static Logger
Constructor Summary
public void
Method Summary
protected void
public String
public String
getLevel(String pkgName)
protected void
initLogger(String loggerFile, String level, Formatter formatter)
public int
compare(String o1, String o2)
private static Level
parse(String level)
public void
resetGlobalLevel(String level)
public void
resetLevel(String level, String pkgName)
public void
setLevel(String level)
public void
setLevel(String pkgName, String level)
Field Detail
className
private final static String className
Final.
Multiplicity:
1
Static.
 

consoleHandler
private ConsoleHandler consoleHandler
Multiplicity:
1
 

curDisplayLevel
private String curDisplayLevel
Multiplicity:
1
 

DEFAULT_INIT_LOGGER
private static String DEFAULT_INIT_LOGGER
Multiplicity:
1
Static.
 

DEFAULT_LOG_APPEND
private static boolean DEFAULT_LOG_APPEND
Multiplicity:
1
Static.
 

DEFAULT_LOG_SIZE
private static int DEFAULT_LOG_SIZE
Multiplicity:
1
Static.
 

DEFAULT_NUM_LOG_FILES
private static int DEFAULT_NUM_LOG_FILES
Multiplicity:
1
Static.
 

exceptions
private static String exceptions
Multiplicity:
1
Static.
 

fileHandler
private FileHandler fileHandler
Multiplicity:
1
 

isConsoleHandler
private boolean isConsoleHandler
Multiplicity:
1
 

isInit
private boolean isInit
Multiplicity:
1
 

TRACE_LEVELS
private static String TRACE_LEVELS
CSN specific trace levels - TODO - change to its in CSN package
Multiplicity:
1
Static.
 

_logger
private final static Logger _logger
Final.
Multiplicity:
1
Static.
 
Constructor Detail
ComponentLogger
public void ComponentLogger ()
 
Ensures that configuration has at least a console handler installed.
Stereotype:
create
 
Method Detail
close
protected void close ()
 
 

getLevel
public String getLevel ()
 
 
 

getLevel
public String getLevel (String pkgName)
 
 

initLogger
protected void initLogger (String loggerFile, String level, Formatter formatter)
 
Initializes a File handler with a level. Will attempt to set the level,
even on an illegal argument is passed in.
Parameters:
loggerFile
level
formatter -
File formatter.
Throws:
IOException,ConfigurationException
 

parse
private static Level parse (String level)
 
Static.
 

resetGlobalLevel
public void resetGlobalLevel (String level)
 
 

resetLevel
public void resetLevel (String level, String pkgName)
 
Attempts to set the levels across file handlers - not only the one that
is initialized - this could be a problem
 

setLevel
public void setLevel (String pkgName, String level)
 
 

setLevel
public void setLevel (String level)
 
 

Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD