Qore Logger Module Reference 0.6
|
Implements callable parameter which is evaluated in run-time when event is rendered. More...
#include <Logger.qm.dox.h>
Public Member Methods | |
auto | call () |
Call function with arguments provided. More... | |
constructor (code func) | |
Creates object. More... | |
Implements callable parameter which is evaluated in run-time when event is rendered.
It may implement logging for stuff which is time consuming to get and would slow program flow in case the logging is actually not performed because of filters or logging levels.
Example:
auto Logger::LoggerEventParameter::call | ( | ) |
Call function with arguments provided.
In case of user function call consider surpressing exceptions to return value corresponding to expected formatting parameter (e.g. "%d").
Logger::LoggerEventParameter::constructor | ( | code | func | ) |
Creates object.
func | function to be called with optional arguments followed |