Giulio Eulisse
0ae9a697b4
Avoid extra allocation when creating the LogMetaData
...
By using a std::string_view for LogMetaData strings we avoid an implicit
memory allocation when passing __file__, etc. which are char const*
(notice this is also the case for the standardized
std::source_location::file_name etc).
2024-05-23 19:47:55 +02:00
Alexey Rybalchenko
953eac19c8
Add 'detail' severity between debug and info
2022-04-12 11:00:41 +02:00
Alexey Rybalchenko
27040ea292
Deprecate uppercase severity names
2021-11-25 14:29:18 +01:00
David Rohr
6545d0efa2
Include fmt/ostream.h, needed for on the fly std::ostream usage
2021-11-15 10:52:33 +01:00
Dennis Klein
2494a9e85a
Revert "Deprecate uppercase severity names"
...
This reverts commit ba7da2f79a
.
2021-09-21 12:54:42 +02:00
Alexey Rybalchenko
ba7da2f79a
Deprecate uppercase severity names
2021-09-10 14:25:31 +02:00
Alexey Rybalchenko
b2dfdd1768
Add 'alarm' and 'important' severities
2021-09-10 14:25:31 +02:00
David Rohr
bcfe438862
Use for instead of if syntax to avoid compiler warnings
2020-08-25 18:53:01 +02:00
Alexey Rybalchenko
4b3e6d3837
Always define FAIR_MIN_SEVERITY
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
a737a1de9c
Add output operator for severities, verbosities
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
1cb941021c
Add getters for file & custom sink severity
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
ce64f628b0
Remove NDEBUG check
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
1253bbbac8
Throw if removing non-existing sink or adding existing
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
e9bd3f2b62
InitFileSink(): return name of the created file
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
1f3b2a2c82
Minor formatting
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
2b37d0147e
make GetColoredSeverityString public
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
f0cbe0bd47
Move Logging() to header
2020-07-17 11:40:15 +02:00
Alexey Rybalchenko
56780689fc
Exchange the meaning of LOGP and LOGF
2020-06-22 09:49:07 +02:00
Alexey Rybalchenko
a0ff4eba50
Fixes for the updated severity order
2020-06-18 10:56:00 +02:00
David Rohr
cfe0f9dc53
Suppress LOG messages with debug severity or less at compile time for release builds
2020-06-18 10:56:00 +02:00
Alexey Rybalchenko
d1f73fe9f0
Use prefixed macro names, allow suppressing unprefixed
2020-03-03 09:53:01 +01:00
Alexey Rybalchenko
2a7d4dfd9a
Update docs
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
edbc8e6270
Further stream optimizations
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
afb468406a
Optimize timestamps and colored severity output
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
a5f3e95238
Some formatting
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
d9ac93552e
Implement LOGN for all sinks
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
dcc27744cd
Add support for fmt/fmt::printf format
2019-08-27 13:40:01 +02:00
Alexey Rybalchenko
4b883688c9
Remove Log() function, do work in constructor
2019-08-27 13:40:01 +02:00
Dennis Klein
5eb2612636
Fix cppcoreguidelines-pro-bounds-array-to-pointer-decay
2019-07-19 09:44:41 +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
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
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
58a80c7da3
Single Logger implementation for FairLogger & FairMQLogger
2018-01-16 22:53:26 +01:00