mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 18:30:25 +01:00
README.markdown edited online with Bitbucket
This commit is contained in:
parent
1259e9e1ea
commit
1f844f5ea1
@ -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.
|
||||
|
||||
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.
|
||||
It is easy to either use pre-made sinks or make your own. When a sink is set to be used by the G3log it 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);
|
||||
|
Loading…
Reference in New Issue
Block a user