@@ -102,7 +102,7 @@ namespace logger {
102102 * @param pname program name
103103 * @param level initial log level (defaults to logger::log_level::info)
104104 */
105- explicit sink (const std::string &name = " default " , const std::string &pname = " prog" , log_level level = log_levels::info);
105+ explicit sink (const std::string &name, const std::string &pname = " prog" , log_level level = log_levels::info);
106106
107107 /* * @return display name for a given log level
108108 */
@@ -128,13 +128,13 @@ namespace logger {
128128#endif
129129
130130 // when _ecid is accessed, we need to do more than just set/get it's value. Therefore, we cannot use std::atomic
131- std::string _ecid; // !< execution control ID. Helps to track everything that was logged by one business operation
132-
133- std::atomic<log_level> _level; // !< current logging level
131+ std::string _ecid; // !< execution control ID. Helps to track everything that was logged by one business operation
134132
135133 // these are read-only, we don't need to handle concurrency
136- std::string _name; // !< logging domain name (as for now, this is equal to the logger name)
137- std::string _pname; // !< program name
134+ std::string _name; // !< logging domain name (as for now, this is equal to the logger name)
135+ std::string _pname; // !< program name
136+
137+ std::atomic<log_level> _level; // !< current logging level
138138
139139 }; // sink
140140
@@ -195,7 +195,7 @@ namespace logger {
195195 pid_t _pid; // !< process ID
196196 std::string _lag; // !< date time lag (i.e. +02:00)
197197 std::string _hostname; // !< hostname (this will be displayed by log messages)
198- std::string _pattern; // !< message pattern (layout)
198+ std::string _pattern; // !< message pattern (layout)
199199 };
200200
201201 /* * stdout sink.
0 commit comments