public class LoggingConfigurator extends Object
Constructor and Description |
---|
LoggingConfigurator() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(Class clazz,
String[] appenders) |
void |
addCategory(String name,
String[] appenders) |
void |
addHtmlAppender(String name) |
void |
addTextAppender(String name) |
String |
getFile(String appender)
same as getFile(appender, true)
|
String |
getFile(String appender,
boolean replaceVariables)
This method selects a filepath of an appender.
|
Collection<String> |
getLoggingFiles()
This method selects all file appenders.
|
Collection<String> |
getWebLoggingFiles()
This method selects all file appenders suitable for web visualization
|
void |
setFile(String appender,
String file)
This method sets a file of an appender.
|
void |
setLogsRoot(String rootPath)
Sets a common path for all file appenders.
|
boolean |
write() |
public Collection<String> getLoggingFiles()
public Collection<String> getWebLoggingFiles()
public String getFile(String appender, boolean replaceVariables)
appender
- The appender namereplaceVariables
- If true all variables(${var}) in the file path
will be substitutedpublic void addTextAppender(String name)
public void addHtmlAppender(String name)
public void setLogsRoot(String rootPath)
rootPath
- The path to be usedpublic boolean write()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.