Commit Graph

22 Commits

Author SHA1 Message Date
Andrey Semashev
ca227bc2f3 Added a link to a more complete example for reading settings from file. 2019-06-25 20:21:27 +03:00
Andrey Semashev
1ce3c06ac6 Added a compilable example for initialization from a settings container.
The new example demostrates working with the settings container directly
and provides a more complete view on the library initialization.

Closes https://github.com/boostorg/log/issues/87.
2019-06-25 20:10:50 +03:00
Andrey Semashev
326d97a9d1 Added auto_newline stream manipulator and formatter.
The manipulator and formatter can be used to ensure a certain piece of output
ends with a newline without introducing duplicate newline characters if the
previous output ended with a newline already.
2019-06-24 00:27:16 +03:00
Andrey Semashev
894acde57e Added support for controling trailing newline insertion in the text sinks.
Text ostream, file and multifile sink backends now support controlling trailing
newline insertion after every log records. The supported modes are described by
the auto_newline_mode enum. The behavior can be controlled via the same-named
named parameter, a set_auto_newline_mode call or the AutoNewline parameter
in the settings.

The default behavior has changed from the previous releases. From now on the
trailing newline will only be added if there isn't one in the formatted log
message already.
2019-06-23 21:02:51 +03:00
Andrey Semashev
e823f88467 Added support for a separate target file name pattern in text file sink.
This allows to have different file names when actively writing the log file
and when rotating. In particular, this solves the problem with appending
to the previous file, when the log files are also collected and are supposed
to have distincs names.
2019-01-05 21:15:33 +03:00
Andrey Semashev
f66f8923ff Added docs for the Append settings parameter for the TextFile sinks.
The parameter was supported in the code but was not documented.
2018-01-17 13:09:20 +03:00
Andrey Semashev
38fd663541 Added a way to disable log file rotation on sink destruction.
This can be useful when the final rotation cannot be performed while global destructors are run (e.g. when a close handler depends on a global state).

It can also be useful to implement file appending with collector set up to a different target directory than the directory the backend writes to.
2016-11-27 22:53:32 +03:00
Andrey Semashev
adb7bcf05d Removed the previously deprecated type_info_wrapper. 2016-10-16 17:47:15 +03:00
Andrey Semashev
3655c652ef Corrected inline code formatting. 2016-08-18 23:44:24 +03:00
Andrey Semashev
7624cf57b9 Added docs for reliable_message_queue. 2016-07-17 15:43:34 +03:00
Andrey Semashev
3c92751c56 Working on documentation for IPC tools. 2016-06-05 22:28:54 +03:00
Andrey Semashev
5de58e8a61 Added documentation and comments. 2016-02-25 22:07:29 +03:00
Andrey Semashev
7cbcf861e5 Improved docs. 2015-04-04 16:01:16 +03:00
Andrey Semashev
7f9dfd579e Deprecated type_info_wrapper. 2015-03-28 21:28:49 +03:00
Andrey Semashev
5bb604ee39 Updated copyright dates. 2015-01-25 17:32:33 +03:00
Andrey Semashev
a21d096e4a Updated copyright notes to 2014. 2014-01-19 18:46:09 +04:00
Andrey Semashev
2ce146a1bc Merged recent changes from trunk.
[SVN r86297]
2013-10-14 11:05:12 +00:00
Andrey Semashev
38432e1788 Added Format parameter to the table of syslog and event log parameters.
[SVN r85490]
2013-08-27 18:49:16 +00:00
Andrey Semashev
b9a24cd46c Fixes #8585. Fixed typos in docs and comments.
[SVN r84352]
2013-05-18 14:21:26 +00:00
Andrey Semashev
8f03520b70 Corrected comment in the example.
[SVN r84127]
2013-05-03 18:21:50 +00:00
Andrey Semashev
cc99f35c1a Added a new dump manipulator.
[SVN r84126]
2013-05-03 18:19:32 +00:00
Andrey Semashev
a7c4e0e319 Boost.Log merged to trunk.
[SVN r83860]
2013-04-13 12:30:25 +00:00