Skip to content

Commit 5e6c1d8

Browse files
committed
Fix logger
1 parent 123a525 commit 5e6c1d8

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

include/cppcore/Common/Logger.h

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ class Logger final {
8686
/// @brief Describes the verbode mode.
8787
enum class VerboseMode {
8888
Invalid = -1, ///< Invalid marker
89-
Normal, ///< Only warnings and errors will be logged.
89+
Normal, ///< Only warnings and errors will be logged.
9090
Verbose, ///< Normal messages will be logged as well.
91-
Debug, ///< All debug messages will be logged as well.
91+
Debug, ///< All debug messages will be logged as well.
9292
Trace, ///< Will enable the tracing.
9393
Count ///< Number of enums
9494
};
9595

9696
/// @brief Describes the mode for prints into the active log stream.
9797
enum class PrintMode {
9898
Invalid = -1, ///< Invalid marker
99-
WithDateTime, ///< A dateTime string will put be in front of the entry.
99+
WithDateTime, ///< A dateTime string will put be in front of the entry.
100100
WithoutDateTime, ///< No DateTime will be there.
101101
Count ///< Number of enums
102102
};
@@ -140,7 +140,7 @@ class Logger final {
140140
/// @brief Logs a print message.
141141
/// @param[in] message The message to log.
142142
/// @param[in] mode Logging mode
143-
void print( const String &message, PrintMode mode = PrintMode::WhithoutDateTime );
143+
void print(const String &message, PrintMode mode = PrintMode::WithoutDateTime);
144144

145145
/// @brief Logs a warn message.
146146
/// @param[in] domain The domain.
@@ -204,49 +204,50 @@ void fatalPrint( const String &domain, const String &file, int line, const Strin
204204
} // namespace cppcore
205205

206206
//-------------------------------------------------------------------------------------------------
207-
/// @fn osre_trace
208-
/// @brief This helper macro will write the trace message into the logger.
209-
/// @param domain The domain to log for.
210-
/// @param message The message to log.
207+
/// @fn osre_trace
208+
/// @brief This helper macro will write the trace message into the logger.
209+
/// @param domain The domain to log for.
210+
/// @param message The message to log.
211211
//-------------------------------------------------------------------------------------------------
212212
#define log_trace(domain, msg) ::cppcore::tracePrint(domain, __FILE__, __LINE__, msg)
213213

214214
//-------------------------------------------------------------------------------------------------
215-
/// @fn osre_debug
216-
/// @brief This helper macro will write the debug message into the logger.
217-
/// @param domain The domain to log for.
218-
/// @param message The message to log.
215+
/// @fn osre_debug
216+
/// @brief This helper macro will write the debug message into the logger.
217+
/// @param domain The domain to log for.
218+
/// @param message The message to log.
219219
//-------------------------------------------------------------------------------------------------
220220
#define log_debug(domain, msg) ::cppcore::debugPrint(domain, __FILE__, __LINE__, msg)
221221

222222
//-------------------------------------------------------------------------------------------------
223-
/// @fn osre_log
224-
/// @brief This helper macro will write the info message into the logger.
225-
/// @param domain The domain to log for.
226-
/// @param message The message to log.
223+
/// @fn osre_log
224+
/// @brief This helper macro will write the info message into the logger.
225+
/// @param domain The domain to log for.
226+
/// @param message The message to log.
227227
//-------------------------------------------------------------------------------------------------
228228
#define log_info(domain, msg) ::cppcore::infoPrint(domain, __FILE__, __LINE__, msg)
229229

230230
//-------------------------------------------------------------------------------------------------
231-
/// @fn osre_warn
232-
/// @brief This helper macro will write a warning into the logger.
233-
/// @param domain The domain to log for.
234-
/// @param message The warning to writhe into the log.
231+
/// @fn osre_warn
232+
/// @brief This helper macro will write a warning into the logger.
233+
/// @param domain The domain to log for.
234+
/// @param message The warning to writhe into the log.
235235
//-------------------------------------------------------------------------------------------------
236236
#define log_warn(domain, message) ::cppcore::warnPrint(domain, __FILE__, __LINE__, message)
237237

238238
//-------------------------------------------------------------------------------------------------
239-
/// @fn osre_error
240-
/// @brief This helper macro will write a error into the logger.
241-
/// @param domain The domain to log for.
242-
/// @param message The warning to writhe into the log.
239+
/// @fn osre_error
240+
/// @brief This helper macro will write a error into the logger.
241+
/// @param domain The domain to log for.
242+
/// @param message The warning to writhe into the log.
243243
//-------------------------------------------------------------------------------------------------
244244
#define log_error(domain, message) ::cppcore::errorPrint(domain, __FILE__, __LINE__, message)
245245

246246
//-------------------------------------------------------------------------------------------------
247-
/// @fn osre_fatal
248-
/// @brief This helper macro will write a fatal error into the logger.
249-
/// @param domain The domain to log for.
250-
/// @param message The warning to writhe into the log.
247+
/// @fn osre_fatal
248+
/// @brief This helper macro will write a fatal error into the logger.
249+
/// @param domain The domain to log for.
250+
/// @param message The warning to writhe into the log.
251251
//-------------------------------------------------------------------------------------------------
252252
#define log_fatal(domain, message) ::cppcore::fatalPrint(domain, __FILE__, __LINE__, message)
253+

0 commit comments

Comments
 (0)