WEB-INF.cftags.componentlogbox.system.logging.AbstractAppender
logbox.system.logging.appenders.DBAppender
This is a simple implementation of a appender that is db based.
Constructor Summary | |
---|---|
init(any name, [any properties='[runtime expression]'], [any layout=''], [any levelMin='0'], [any levelMax='4'])
Constructor. |
Method Summary | |
---|---|
private void
|
checkColumnMap()
Check a column map definition. |
any
|
doRotation()
Do Rotation. |
private void
|
ensureTable()
Verify or create the logging table. |
private any
|
getDateTimeColumnType()
|
private any
|
getDateTimeDBType()
|
private any
|
getTable()
Return the table name with the schema included if found. |
void
|
logMessage(any logEvent)
Write an entry into the appender. |
void
|
onRegistration()
Runs on registration. |
any
|
rotationCheck()
Rotation checks. |
Methods inherited from class logbox.system.logging.AbstractAppender |
---|
$log, canLog, getColdbox, getCustomLayout, getHash, getName, getProperties, getProperty, getUtil, getlevelMax, getlevelMin, hasCustomLayout, isInitialized, onUnRegistration, propertyExists, setColdbox, setInitialized, setLevelMax, setLevelMin, setProperties, setProperty, severityToString |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
name
- The unique name for this appender.properties
- A map of configuration properties for the appenderlayout
- The layout class to use in this appender for custom message rendering.levelMin
- The default log level for this appender, by default it is 0. Optional. ex: LogBox.logLevels.WARNlevelMax
- The default log level for this appender, by default it is 5. Optional. ex: LogBox.logLevels.WARNMethod Detail |
---|
Check a column map definition
Do Rotation
Verify or create the logging table
Return the table name with the schema included if found.
Write an entry into the appender.
logMessage
in class
AbstractAppender
logEvent
- The logging eventRuns on registration
onRegistration
in class
AbstractAppender
Rotation checks