mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
astyle
This commit is contained in:
@@ -20,7 +20,7 @@ void init()
|
||||
keywords::file_name = "logs/boost-sample_%N.log", /*< file name pattern >*/
|
||||
keywords::rotation_size = 10 * 1024 * 1024, /*< rotate files every 10 MiB... >*/
|
||||
keywords::auto_flush = false,
|
||||
keywords::format = "[%TimeStamp%]: %Message%"
|
||||
keywords::format = "[%TimeStamp%]: %Message%"
|
||||
);
|
||||
|
||||
logging::core::get()->set_filter
|
||||
@@ -32,14 +32,14 @@ void init()
|
||||
|
||||
int main(int argc, char* [])
|
||||
{
|
||||
int howmany = 1000000;
|
||||
int howmany = 1000000;
|
||||
init();
|
||||
logging::add_common_attributes();
|
||||
|
||||
using namespace logging::trivial;
|
||||
src::severity_logger_mt< severity_level > lg;
|
||||
for(int i = 0 ; i < howmany; ++i)
|
||||
BOOST_LOG_SEV(lg, info) << "Boost logger message #" << i;
|
||||
for(int i = 0 ; i < howmany; ++i)
|
||||
BOOST_LOG_SEV(lg, info) << "Boost logger message #" << i;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user