|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.logging.config.LogBoxConfig
public class LogBoxConfig
This is a LogBox configuration object. You can use it to configure a log box instance
| Constructor Summary | |
|---|---|
init([string XMLConfig=''], [any CFCConfig], [string CFCConfigPath])
Constructor |
|
| Method Summary | |
|---|---|
private void |
$abort()
Facade for cfabort |
private void |
$dump(any var, [boolean isAbort='false'])
Facade for cfmx dump |
private any |
$throw(string message, [string detail=''], [string type='Framework'])
Facade for cfthrow |
void |
DEBUG()
Add categories to the DEBUG level |
void |
ERROR()
Add categories to the ERROR level |
void |
FATAL()
Add categories to the FATAL level |
void |
INFO()
Add categories to the INFO level |
void |
OFF()
Add categories to the OFF level |
void |
WARN()
Add categories to the WARN level |
void |
appender(string name, string class, [struct properties='[runtime expression]'], [string layout=''], [numeric levelMin='0'], [numeric levelMax='4'])
Add an appender configuration |
void |
category(string name, [numeric levelMin='0'], [numeric levelMax='4'], [string appenders='*'])
Add a new category configuration with appender(s) |
boolean |
categoryExists(string name)
Check if a category definition exists |
private struct |
convertLevels(struct target='')
Convert levels from an incoming structure of data |
struct |
getAllAppenders()
Get all the configured appenders |
struct |
getAllCategories()
Get the configured categories |
struct |
getCategory(string name)
Get a specifed category definition |
struct |
getMemento()
Get the instance data |
struct |
getRoot()
Get the root logger definition |
private void |
levelChecks(numeric levelMin, numeric levelMax)
Level checks or throw |
void |
loadDataDSL(struct rawDSL)
Load a data configuration CFC data DSL |
void |
parseAndLoad(any xmlDoc)
Parse and load a config xml object |
void |
reset()
Reset the configuration |
void |
resetAppenders()
Reset the appender configurations |
void |
resetCategories()
Reset the set categories |
void |
resetRoot()
Reset the root logger |
void |
root([numeric levelMin='0'], [numeric levelMax='4'], string appenders)
Register the root logger in this configuration |
void |
validate()
Validates the configuration |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init([string XMLConfig=''], [any CFCConfig], [string CFCConfigPath])
XMLConfig - The xml configuration file to use instead of a programmatic approachCFCConfig - The logBox Data Configuration CFCCFCConfigPath - The logBox Data Configuration CFC path to use| Method Detail |
|---|
private void $abort()
private void $dump(any var, [boolean isAbort='false'])
varisAbort - Abort alsoprivate any $throw(string message, [string detail=''], [string type='Framework'])
messagedetailtypepublic void DEBUG()
public void ERROR()
public void FATAL()
public void INFO()
public void OFF()
public void WARN()
public void appender(string name, string class, [struct properties='[runtime expression]'], [string layout=''], [numeric levelMin='0'], [numeric levelMax='4'])
name - A unique name for the appender to register. Only unique names can be registered per instance.class - The appender's class to register. We will create, init it and register it for you.properties - The structure of properties to configure this appender with.layout - The layout class path to use in this appender for custom message rendering.levelMin - The default log level for the root logger, by default it is 0 (FATAL). Optional. ex: config.logLevels.WARNlevelMax - The default log level for the root logger, by default it is 4 (DEBUG). Optional. ex: config.logLevels.WARNpublic void category(string name, [numeric levelMin='0'], [numeric levelMax='4'], [string appenders='*'])
name - A unique name for the appender to register. Only unique names can be registered per instance.levelMin - The default min log level for this category. Defaults to the lowest level 0 or FATALlevelMax - The max default log level for this category. If not passed it defaults to the highest level possibleappenders - A list of appender names to configure this category with. By default it uses all the registered appenderspublic boolean categoryExists(string name)
name - The category to retrieveprivate struct convertLevels(struct target='')
target - The structure to look for elements: LevelMin and LevelMaxpublic struct getAllAppenders()
public struct getAllCategories()
public struct getCategory(string name)
name - The category to retrievepublic struct getMemento()
public struct getRoot()
private void levelChecks(numeric levelMin, numeric levelMax)
levelMinlevelMaxpublic void loadDataDSL(struct rawDSL)
rawDSL - The data configuration DSL structurepublic void parseAndLoad(any xmlDoc)
xmlDoc - The xml document object to use for parsing.public void reset()
public void resetAppenders()
public void resetCategories()
public void resetRoot()
public void root([numeric levelMin='0'], [numeric levelMax='4'], string appenders)
levelMin - The default log level for the root logger, by default it is 0 (FATAL). Optional. ex: config.logLevels.WARNlevelMax - The default log level for the root logger, by default it is 4 (DEBUG). Optional. ex: config.logLevels.WARNappenders - A list of appenders to configure the root logger with. Send a * to add all appenderspublic void validate()
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||