mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-15 09:31:44 +00:00
Use fmt::localtime instead of std one for thread safety
This commit is contained in:
committed by
Mohammad Al-Turany
parent
d9ac93552e
commit
3d36ffeb40
@@ -134,8 +134,7 @@ int main()
|
||||
cout << "cout: is logging fatal: " << fair::Logger::Logging(Severity::fatal) << endl;
|
||||
cout << "cout: is logging nolog: " << fair::Logger::Logging(Severity::nolog) << endl;
|
||||
|
||||
for (int i = 0; i < 1000000; ++i)
|
||||
{
|
||||
for (int i = 0; i < 1000000; ++i) {
|
||||
silentlyPrintAllVerbositiesWithSeverity(Severity::nolog);
|
||||
}
|
||||
cout << endl;
|
||||
@@ -198,8 +197,8 @@ int main()
|
||||
LOGF(info, "Hello {} {}!", "world", ":-)");
|
||||
LOGP(info, "Hello %s %s!", "world", ":-)");
|
||||
|
||||
cout << "cout: setting verbosity to 'veryhigh'" << endl;
|
||||
Logger::SetVerbosity(Verbosity::veryhigh);
|
||||
cout << "cout: setting verbosity to 'high'" << endl;
|
||||
Logger::SetVerbosity(Verbosity::high);
|
||||
|
||||
LOGV(info, verylow) << "I should be printed with very low verbosity";
|
||||
|
||||
|
Reference in New Issue
Block a user