Just to let you know, a user has kindly posted a tutorial Pantheios logging library - basic blog entry, which covers the basics of obtaining, installing, and using the Pantheios library.
I've just scanned it, and it looks like it covers quite a lot of stuff.
I'll read it fully soon, and post any more relevant news.
Thanks, Son DN!
The diary of the world's fastest, most flexible, and most robust C++ logging API library.
Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts
Tuesday, November 2, 2010
Monday, October 18, 2010
Pantheios 1.0.1 beta 197 released: be.file supports date/time in log file name
The latest release of Pantheios provides an enhancement to the be.file back-end, supporting current-date and/or current-time to form part of the log file-name. For example,
pantheios_be_file_setFilePath("test-%T-%D.log");
The %T specifier is replaced by the current time, in the format HHMMSS. The %D specifier is replaced by the current date, in the format YYYYMMSS. If the function is called at, say, 7:22 am (and 10 seconds) on the 19th October 2010, the process will log to the file test-20101019-072210.log.
(Note, as always, the following caveat: Pantheios' stock back-ends are intended for tutorial or simple program purposes. More sophisticated logging should be provided by having Pantheios delegate its transport to a fully-fledged logging library.)
#include <pantheios/backends/bec.file.h>
pantheios_be_file_setFilePath("test-%T-%D.log");
The %T specifier is replaced by the current time, in the format HHMMSS. The %D specifier is replaced by the current date, in the format YYYYMMSS. If the function is called at, say, 7:22 am (and 10 seconds) on the 19th October 2010, the process will log to the file test-20101019-072210.log.
(Note, as always, the following caveat: Pantheios' stock back-ends are intended for tutorial or simple program purposes. More sophisticated logging should be provided by having Pantheios delegate its transport to a fully-fledged logging library.)
Subscribe to:
Posts (Atom)