Boost logo

Boost :

Subject: Re: [boost] [log] Set default log source name
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-07-12 16:30:48


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"));


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk