lucee.Componentrollbar.RollbarService
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Connector to Rollbar
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
APIBaseURL
API Base URL.
|
https://api.rollbar.com/api/1/item/
|
true
|
false
|
struct
|
moduleConfig
Module Configuration struct.
|
true
|
false
|
|
struct
|
settings
Module Settings.
|
true
|
false
|
Constructor Summary | |
---|---|
init(struct settings, any coldbox)
Constructor. |
Method Summary | |
---|---|
any
|
exceptionToLogBody(any exception)
Convert an exception to log body struct. |
string
|
getAPIBaseURL()
|
private any
|
getHostName()
Get the host name you are on. |
string
|
getModuleConfig()
|
private any
|
getRealIP()
Get Real IP, by looking at clustered, proxy headers and locally. |
string
|
getSettings()
|
private any
|
marshallStackTrace(any exception)
Marshall a stack trace. |
private struct
|
sanitizeFields(struct data)
Sanitize fields. |
private any
|
sanitizeHeaders(struct data)
Sanitize the incoming http headers in the request data struct. |
private any
|
sanitizeQueryString(string target)
Sanitize the incoming query string. |
any
|
sendMessage(string message, [struct metadata='[runtime expression]'], [any level='info'])
Send a message to rollbar. |
any
|
sendToRollbar(struct logBody, [struct metadata='[runtime expression]'], [any level='info'])
Send a log body to rollbar. |
any
|
setAPIBaseURL(any APIBaseURL)
|
any
|
setModuleConfig(struct moduleConfig)
|
any
|
setSettings(struct settings)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
settings
- The module settingscoldbox
Property Detail |
---|
API Base URL
access
- publicrequired
- falsereturntype
- anyserializable
- trueModule Configuration struct
access
- publicrequired
- falsereturntype
- anyserializable
- trueModule Settings
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Convert an exception to log body struct
exception
- The exception objectGet the host name you are on
Get Real IP, by looking at clustered, proxy headers and locally.
Marshall a stack trace
exception
- The exception objectSanitize fields
data
- The data fields structSanitize the incoming http headers in the request data struct
data
- The HTTP data struct, passed by referenceSanitize the incoming query string
target
- The target string to sanitizeSend a message to rollbar
message
- A string messagemetadata
- A struct of metadata to send alongside the messagelevel
- One of: "critical", "error", "warning", "info", "debug", defaults to "info"Send a log body to rollbar
logBody
- The logBody struct to send as a messagemetadata
- A struct of metadata to send alongside the messagelevel
- One of: "critical", "error", "warning", "info", "debug", defaults to "info"APIBaseURL
moduleConfig
settings