mirror of
https://github.com/KjellKod/g3log.git
synced 2025-04-16 23:12:59 +02:00
printout if dynamic level is enabled or not
This commit is contained in:
parent
54925d3ba2
commit
e430a40884
@ -7,6 +7,7 @@
|
|||||||
// through CMakeLists.txt #define of GOOGLE_GLOG_PERFORMANCE and G2LOG_PERFORMANCE
|
// through CMakeLists.txt #define of GOOGLE_GLOG_PERFORMANCE and G2LOG_PERFORMANCE
|
||||||
#include "performance.h"
|
#include "performance.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#if defined(G2LOG_PERFORMANCE)
|
#if defined(G2LOG_PERFORMANCE)
|
||||||
const std::string title = "G2LOG";
|
const std::string title = "G2LOG";
|
||||||
@ -25,6 +26,12 @@ using namespace g2_test;
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
#ifdef G2_DYNAMIC_LOGGING
|
||||||
|
std::cerr << "G2_DYNAMIC_LOGGING is enabled" << std::endl;
|
||||||
|
#else
|
||||||
|
std::cerr << "G2_DYNAMIC_LOGGING is DISABLED" << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t number_of_threads =0;
|
size_t number_of_threads =0;
|
||||||
if(argc == 2)
|
if(argc == 2)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user