ox.system.logging.concurrent.Callable interface">
|
ColdBox Platform - LogBox Version 1.5 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
logbox.system.logging.AbstractAppender
public class AbstractAppender
This is the abstract interface component for all LogBox Appenders
| Constructor Summary | |
|---|---|
init(string name, [struct properties='[runtime expression]'], [string layout=''], [numeric levelMin='0'], [numeric levelMax='4'])
Constructor called by a Concrete Appender |
|
| Method Summary | |
|---|---|
private void |
$abort()
Facade for cfabort |
private void |
$dump(any var, [boolean isAbort='false'])
Facade for cfmx dump |
private void |
$log(string severity='INFO', string message='')
Log an internal message to the ColdFusion facilities |
private void |
$rethrowit(any throwObject)
Rethrow facade |
private any |
$throw(string message, [string detail=''], [string type='Framework'])
Facade for cfthrow |
boolean |
canLog(numeric level)
Checks wether a log can be made on this appender using a passed in level |
any |
getColdbox()
Get the ColdBox application controller LogBox is linked to |
any |
getCustomLayout()
Get the custom layout object |
string |
getHash()
Get this appender's unique ID |
string |
getName()
Get this appender's name |
struct |
getProperties()
Get properties structure map |
any |
getProperty(string property)
Get a property, throws exception if not found |
private Util |
getUtil()
Create and return a util object |
numeric |
getlevelMax()
Get the level Max setting |
numeric |
getlevelMin()
Get the level min setting |
Boolean |
hasCustomLayout()
Whether a custom layout has been set or not |
boolean |
isInitialized()
Checks if the appender's internal variables are initialized |
void |
logMessage(LogEvent logEvent)
Write an entry into the appender |
void |
onRegistration()
Runs after the appender has been created and registered |
void |
onUnRegistration()
Runs before the appender is unregistered from LogBox |
boolean |
propertyExists(string property)
Checks wether a given property exists or not |
void |
setColdbox(any coldbox)
Set the ColdBox application link |
void |
setInitialized(boolean initialized)
Set's the appender's internal variables flag to initalized |
void |
setLevelMax(numeric levelMax)
Set the appender's default levelMax |
void |
setLevelMin(numeric levelMin)
Set the appender's default levelMin |
void |
setProperties(struct properties)
Set the entire properties structure map |
void |
setProperty(string property, any value)
Set a property |
string |
severityToString(numeric severity)
convert a severity to a string |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string name, [struct properties='[runtime expression]'], [string layout=''], [numeric levelMin='0'], [numeric levelMax='4'])
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.WARN| Method Detail |
|---|
private void $abort()
private void $dump(any var, [boolean isAbort='false'])
varisAbort - Abort alsoprivate void $log(string severity='INFO', string message='')
severity - The severity to use.message - The message to logprivate void $rethrowit(any throwObject)
throwObject - The cfcatch objectprivate any $throw(string message, [string detail=''], [string type='Framework'])
messagedetailtypepublic boolean canLog(numeric level)
level - The level to check if it can be logged in this Appenderpublic any getColdbox()
public any getCustomLayout()
public string getHash()
public string getName()
public struct getProperties()
public any getProperty(string property)
property - The key of the property to return.private Util getUtil()
public numeric getlevelMax()
public numeric getlevelMin()
public Boolean hasCustomLayout()
public boolean isInitialized()
public void logMessage(LogEvent logEvent)
logEvent - The logging event to log.public void onRegistration()
public void onUnRegistration()
public boolean propertyExists(string property)
property - The property namepublic void setColdbox(any coldbox)
coldboxpublic void setInitialized(boolean initialized)
initializedpublic void setLevelMax(numeric levelMax)
levelMaxpublic void setLevelMin(numeric levelMin)
levelMinpublic void setProperties(struct properties)
propertiespublic void setProperty(string property, any value)
property - The property name to set.value - The value of the property.public string severityToString(numeric severity)
severity - The severity to convert
|
ColdBox Platform - LogBox Version 1.5 | ||||
| FRAMES | |||||