setup.fewsdiagnostics: functions for the Lizard-FEWS diagnostics file

Description Usage Arguments Examples

View source: R/diagnostics.R

Description

setup.fewsdiagnostics and teardown.fewsdiagnostics initialise and finalize the fews diagnostics file. between the two calls a handler is attached to "fews.diagnostics" logger. this handler will help you produce a correct fews diagnostics file holding the logging records that hit that logger.

only one such file can be generated so keep that in mind when you use these two functions.

Usage

1
2

Arguments

filename

the name of the xml file the diagnostics are written to.

...

further arguments might be used in the future.

Examples

1
2
3
 setup.fewsdiagnostics('diagnostics.xml')
 loginfo("some message to fews", logger="fews.diagnostics")
 teardown.fewsdiagnostics('diagnostics.xml')

delftfews documentation built on May 2, 2019, 4:48 p.m.