Description Usage Arguments Examples
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.
1 2 | setup.fewsdiagnostics(filename)
teardown.fewsdiagnostics(...)
|
filename |
the name of the xml file the diagnostics are written to. |
... |
further arguments might be used in the future. |
1 2 3 | setup.fewsdiagnostics('diagnostics.xml')
loginfo("some message to fews", logger="fews.diagnostics")
teardown.fewsdiagnostics('diagnostics.xml')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.