File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ class Log {
7171 // Writes a message to the log file and if enabled also to the _terminal
7272 // stream
7373 // @exception No custom exceptions
74- void write (std::string msg, log_level_t level, std::string color = RESET);
74+ void write (std::string const & msg, log_level_t level,
75+ std::string color = RESET);
7576
7677 private:
7778 std::string getLevelColor (log_level_t level);
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ log_level_t Log::_log_level = LOG_LEVEL;
55std::string Log::_timeFormat = LOG_TIME_FORMAT;
66std::string Log::_dateFormat = LOG_DATE_FORMAT;
77
8- Log::Log (std::ostream& terminal) : _terminal(terminal) {}
8+ Log::Log (std::ostream & terminal) : _terminal(terminal) {}
99
1010Log::~Log () {}
1111
@@ -50,7 +50,7 @@ log_level_t Log::getLevel() { return _log_level; }
5050
5151bool Log::getInitialized () { return _initialized; }
5252
53- void Log::write (std::string msg, log_level_t level, std::string color) {
53+ void Log::write (std::string const & msg, log_level_t level, std::string color) {
5454 if (level > _log_level) return ;
5555 std::string timeStamp = " [" + getTime (_dateFormat + " " + _timeFormat) + " ] " ;
5656 if (_log_to_terminal) {
You can’t perform that action at this time.
0 commit comments