mirror of
https://github.com/KjellKod/g3log.git
synced 2025-03-04 07:27:25 +01:00
README.markdown edited online with Bitbucket
This commit is contained in:
parent
81a7c9109d
commit
1259e9e1ea
@ -76,7 +76,7 @@ The code is given for free as public domain. This gives the option to change, us
|
||||
|
||||
The *std::string* comes pre-formatted. The *g2::LogMessageMover* is a wrapped struct that contains the raw data for custom handling in your own sink.
|
||||
|
||||
A sink is *owned* by the G3log and is added to the logger inside a ```std::unique_ptr```. The sink can be called though its public API through a *handler* which will asynchronously forward the call to the receiving sink.
|
||||
It is easy to either use pre-made sinks or make your own. When a sink is set to be used by the G3log is is added to the logger inside a ```std::unique_ptr```. The sink can be called though its public API through a *handler* which will asynchronously forward the call to the receiving sink.
|
||||
```
|
||||
auto sinkHandle = logworker->addSink(std2::make_unique<CustomSink>(),
|
||||
&CustomSink::ReceiveLogMessage);
|
||||
@ -203,4 +203,4 @@ or at <Hedstrom at KjellKod dot cc>
|
||||
|
||||
Cheers
|
||||
|
||||
Kjell *(a.k.a. KjellKod)*
|
||||
Kjell *(a.k.a. KjellKod)*
|
Loading…
x
Reference in New Issue
Block a user