lucee.Component
coldbox.system.logging.AbstractAppender
coldbox.system.logging.appenders.ScopeAppender
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A simple Scope Appender that logs to a specified scope. Properties: - scope : the scope to persist to, defaults to request (optional) - key : the key to use in the scope, it defaults to the name of the Appender (optional) - limit : a limit to the amount of logs to rotate. Defaults to 0, unlimited (optional)
| Constructor Summary | |
|---|---|
|
init(any name, [struct properties='[runtime expression]'], [any layout=''], [any levelMin='0'], [any levelMax='4'])
Constructor. |
|
| Method Summary | |
|---|---|
private any
|
ensureStorage()
Ensure the first storage in the scope. |
private any
|
getStorage()
Get the storage. |
any
|
logMessage(LogEvent logEvent)
Write an entry into the appender. |
private any
|
saveStorage(any data)
Save Storage. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
name - The unique name for this appender.properties - A map of configuration properties for the appender"layout - 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.WARN| Method Detail |
|---|
Ensure the first storage in the scope
Get the storage
Write an entry into the appender. You must implement this method yourself.
logMessage
in class
AbstractAppender
logEvent - The logging event to logSave Storage
data - The data to store