Browse Source

Improved Logger class

- passed "message" variable directly instead of using "c_str" method
pcmattulat 4 years ago
parent
commit
0f13a2731b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/io/logging/Logger.cpp

+ 2 - 2
source/io/logging/Logger.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
  * Created:         2020-08-20
- * Changed:         2020-08-21
+ * Changed:         2020-08-26
  *
  *
  * */
  * */
 
 
@@ -97,5 +97,5 @@ void ls_std::Logger::_log(const ls_std::byte *_data, const ls_std::LogLevel& _lo
       std::string(_data) +
       std::string(_data) +
       ls_std::NewLine::getUnixNewLine();
       ls_std::NewLine::getUnixNewLine();
 
 
-  outputStream->write(message.c_str());
+  outputStream->write(message);
 }
 }