Description Usage Arguments Details Examples
when you define a handler, you specify its name and the associated action. a few predefined actions are provided and this page documents them.
1 2 | writeToFile(msg, handler, ...)
writeToConsole(msg, handler, ...)
|
msg |
the final formatted message to be output |
handler |
the handler owning this action |
... |
placeholder: accept any extra future parameter. |
a handler action is a function taking two parameters: the formatted log record and the handler to which the action is associated. the second parameter is useful so you can register the same handler action to handlers with different properties.
1 2 3 | ## define your own function and register it with a handler.
## author is planning a sentry client function. please send
## any interesting function you may have written!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.