diff options
Diffstat (limited to 'src/crepe/api')
| -rw-r--r-- | src/crepe/api/Config.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h index d6ee8e8..f47f45b 100644 --- a/src/crepe/api/Config.h +++ b/src/crepe/api/Config.h @@ -11,14 +11,27 @@ public:  	~Config() = default;  public: +	//! Retrieve handle to global Config instance  	static Config & get_instance() {  		static Config instance;  		return instance;  	}  public: +	//! Logging-related settings  	struct { +		/** +		 * \brief Log level +		 * +		 * Only messages with equal or higher priority than this value will be +		 * logged. +		 */  		util::log_level level = util::log_level::INFO; +		/** +		 * \brief Colored log output +		 * +		 * Enables log coloring using ANSI escape codes. +		 */  		bool color = true;  	} log;  };  |