Learn R Programming

logging (version 0.6-85)

addHandler: add a handler to a logger

Description

creates a new named handler list, attaches it to the specified logger and registers a defines a function as a handler of log records going through the specified logger.

Usage

addHandler(handler, ..., logger = "")

Arguments

handler
the name of the handler, or its action
...
extra parameters for the action, to be stored in the handler list
logger
the name of the logger to which to attach the new handler, defaults to the root logger

Details

...may contain extra parameters that will be passed to the handler action. some elements in the ...will be interpreted here.

a handler has a name and at least the three fields: [object Object],[object Object],[object Object]

further a handler may have as many fields as you think you need. keep in mind the handler (and all of its fields) are passed to the action function.