Commit Graph

22 Commits

Author SHA1 Message Date
Alexey Rybalchenko
946e807f79 Further stream optimizations 2019-08-22 16:52:34 +02:00
Alexey Rybalchenko
ea7ad58d42 Optimize timestamps and colored severity output 2019-08-22 14:20:53 +02:00
Alexey Rybalchenko
a42c88183e Some formatting 2019-08-22 14:20:53 +02:00
Alexey Rybalchenko
f91643b9fa Use fmt::localtime instead of std one for thread safety 2019-08-22 14:20:53 +02:00
Alexey Rybalchenko
0b8936aeaf Implement LOGN for all sinks 2019-08-22 14:20:53 +02:00
Alexey Rybalchenko
b34f8d0684 Add support for fmt/fmt::printf format 2019-08-22 14:20:50 +02:00
Alexey Rybalchenko
3a875507d3 Remove Log() function, do work in constructor 2019-08-20 16:04:46 +02:00
Dennis Klein
9949e83a14 Fix -Wsign-compare 2019-06-27 13:18:26 +02:00
Alexey Rybalchenko
180acaae26 Allow use after static destruction took place 2019-01-17 14:12:14 +01:00
Alexey Rybalchenko
2d5dd004cb Expose color tools 2019-01-02 09:18:30 +01:00
Alexey Rybalchenko
4c2c238030 Format 2019-01-02 09:18:30 +01:00
Dennis Klein
3e1de0a17b Support user-defined verbosity formats
* Add `fair::Logger::DefineVerbosity(...)` API
* Add documentation to README
* Optionally support `BOOST_PRETTY_FUNCTION`
2019-01-02 09:18:30 +01:00
Giulio Eulisse
7d0411b939 Use quotes to include local headers
In general angular brackets are used for external headers, while quotes are used for internal ones. Is there any particular reason not to follow the conventions? While this is admittedly left to the compiler implementor by the standard, some implementations, like gcc, do have a peculiar behavior for the two kind of `include` and the current solution might end up including something unwanted, especially given the quite "common" name (Logger) used.
2019-01-01 15:50:00 +01:00
Alexey Rybalchenko
1f600fa981 guard localtime with a mutex to avoid race 2018-07-30 19:46:30 +02:00
Alexey Rybalchenko
63820e5f2c Add cycle methods and verylow verbosity (msg only) 2018-05-09 15:30:01 +02:00
Alexey Rybalchenko
de02bd068f add string version of Logging() 2018-05-02 15:32:06 +02:00
Alexey Rybalchenko
42470d2090 Logger: handle nullptr. 2018-03-22 14:11:00 +01:00
Alexey Rybalchenko
a9f9030041 Logger: Allow adding custom sinks
(example in logger/loggerTest.cxx, docs in fairmq/docs/Logging.md)
2018-01-26 16:06:19 +01:00
Alexey Rybalchenko
a35a4f48a8 Logger: output only to stdout 2018-01-23 18:35:09 +01:00
Alexey Rybalchenko
e32efc489d replace put_time with strftime (former not available on gcc < 5) 2018-01-16 22:53:26 +01:00
Alexey Rybalchenko
e6085f03d8 convert log severities use to lowercase and remove use of MQLOG 2018-01-16 22:53:26 +01:00
Alexey Rybalchenko
58a80c7da3 Single Logger implementation for FairLogger & FairMQLogger 2018-01-16 22:53:26 +01:00