|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-08-20
|
|
|
- * Changed: 2023-05-17
|
|
|
+ * Changed: 2023-05-18
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -39,7 +39,7 @@ Logger::Logger(const shared_ptr<IWriter> &_writer) : Class("Logger"), logLevel(L
|
|
|
|
|
|
Logger::~Logger() noexcept = default;
|
|
|
|
|
|
-void Logger::debug(const byte_type *_data)
|
|
|
+void Logger::debug(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::DEBUG)
|
|
|
{
|
|
@@ -47,7 +47,7 @@ void Logger::debug(const byte_type *_data)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Logger::error(const byte_type *_data)
|
|
|
+void Logger::error(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::ERR)
|
|
|
{
|
|
@@ -55,7 +55,7 @@ void Logger::error(const byte_type *_data)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Logger::fatal(const byte_type *_data)
|
|
|
+void Logger::fatal(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::FATAL)
|
|
|
{
|
|
@@ -78,7 +78,7 @@ void Logger::hideTimestamp()
|
|
|
this->displayTimestamp = false;
|
|
|
}
|
|
|
|
|
|
-void Logger::info(const byte_type *_data)
|
|
|
+void Logger::info(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::INFO)
|
|
|
{
|
|
@@ -101,7 +101,7 @@ void Logger::showTimestamp()
|
|
|
this->displayTimestamp = true;
|
|
|
}
|
|
|
|
|
|
-void Logger::trace(const byte_type *_data)
|
|
|
+void Logger::trace(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::TRACE)
|
|
|
{
|
|
@@ -109,7 +109,7 @@ void Logger::trace(const byte_type *_data)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Logger::warn(const byte_type *_data)
|
|
|
+void Logger::warn(const byte_type *_data) const
|
|
|
{
|
|
|
if (this->logLevel >= LogLevelValue::WARN)
|
|
|
{
|