railo-context.Component coldbox.system.logging.AbstractAppender coldbox.system.logging.appenders.SocketAppender
A NIO socket appender
Constructor Summary | |
---|---|
init(any name, [any properties='[runtime expression]'], [any layout=''], [any levelMin='0'], [any levelMax='4'])
Constructor. |
Method Summary | |
---|---|
void
|
closeConnection()
Closes the socket connection. |
any
|
getSocket()
Get the socket object. |
any
|
getSocketWriter()
Get the socket writer object. |
void
|
logMessage(any logEvent)
Write an entry into the appender. |
void
|
onRegistration()
When registration occurs. |
void
|
onUnRegistration()
When Unregistration occurs. |
private void
|
openConnection()
Opens a socket connection. |
Methods inherited from class coldbox.system.logging.AbstractAppender |
---|
$log, canLog, getColdbox, getCustomLayout, getHash, getlevelMax, getlevelMin, getName, getProperties, getProperty, getUtil, hasCustomLayout, isInitialized, propertyExists, setColdbox, setInitialized, setLevelMax, setLevelMin, setProperties, setProperty, severityToString |
Methods inherited from class railo-context.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 |
---|
Closes the socket connection
Get the socket object
Get the socket writer object
Write an entry into the appender.
logMessage
in class
AbstractAppender
logEvent
- The logging eventWhen registration occurs
onRegistration
in class
AbstractAppender
When Unregistration occurs
onUnRegistration
in class
AbstractAppender
Opens a socket connection