diff --git a/src/g3log/logmessage.hpp b/src/g3log/logmessage.hpp index ae1e071..28dcf25 100644 --- a/src/g3log/logmessage.hpp +++ b/src/g3log/logmessage.hpp @@ -76,7 +76,7 @@ namespace g3 { LogMessage& operator=(LogMessage other); - LogMessage(const char * file, const int line, const std::string& function, const LEVELS& level); + LogMessage(const std::string& file, const int line, const std::string& function, const LEVELS& level); explicit LogMessage(const std::string& fatalOsSignalCrashMessage); LogMessage(const LogMessage& other); @@ -90,7 +90,7 @@ namespace g3 { timespec _timestamp; std::thread::id _call_thread_id; std::string _file; - std::string _file_path; + std::string _file_path; int _line; std::string _function; LEVELS _level; diff --git a/src/logmessage.cpp b/src/logmessage.cpp index 06b43fb..69d7b4e 100644 --- a/src/logmessage.cpp +++ b/src/logmessage.cpp @@ -123,7 +123,7 @@ namespace g3 { } - LogMessage::LogMessage(const char * file, const int line, + LogMessage::LogMessage(const std::string& file, const int line, const std::string& function, const LEVELS& level) : _call_thread_id(std::this_thread::get_id()) , _file(splitFileName(file))