12 Jul
2013
12 Jul
'13
8:30 p.m.
On Friday 12 July 2013 09:24:14 Renato Forti wrote:
Hi All,
Have any way to define a custon log source name on simple_event_log_backend! I foud a method to get (get_default_source_name), but where is "set" method!
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\do kagent simple event source
I want set/change default name (in my case) : "dokagent simple event source"
You can pass the source name in the log_source named parameter to the backend constructor: shared_ptr< simple_event_log_backend > backend(new simple_event_log_backend( keywords::log_source = "dokagent simple event source"));