Murl::Debug Functions

Assert, Trace and Error functions and macros. More...

Collaboration diagram for Murl::Debug Functions:

Macros

#define MURL_ERROR(...)
 Write an error message with the current function name plus line number and a variable number of arguments. More...
 
#define MURL_WARNING(...)
 Write an warning message with the current function name plus line number and a variable number of arguments. More...
 
#define MURL_ERROR_TIME_BEGIN(key)
 Begin a time measurement for error output. More...
 
#define MURL_ERROR_TIME_END(key, message)
 End a time measurement and write an error message with the current function name plus line number. More...
 

Functions

void Murl::Debug::Error (const Char *message)
 Write an error message string. More...
 
template<class Type1 >
void Murl::Debug::Error (const Char *format, const Type1 v1)
 Write an error with format string and 1 argument. More...
 
template<class Type1 , class Type2 >
void Murl::Debug::Error (const Char *format, const Type1 v1, const Type2 v2)
 Write an error with format string and 2 arguments. More...
 
template<class Type1 , class Type2 , class Type3 >
void Murl::Debug::Error (const Char *format, const Type1 v1, const Type2 v2, const Type3 v3)
 Write an error with format string and 3 arguments. More...
 
template<class Type1 , class Type2 , class Type3 , class Type4 >
void Murl::Debug::Error (const Char *format, const Type1 v1, const Type2 v2, const Type3 v3, const Type4 v4)
 Write an error with format string and 4 arguments. More...
 
template<class Type1 , class Type2 , class Type3 , class Type4 , class Type5 >
void Murl::Debug::Error (const Char *format, const Type1 v1, const Type2 v2, const Type3 v3, const Type4 v4, const Type5 v5)
 Write an error with format string and 5 arguments. More...
 
template<class Type1 , class Type2 , class Type3 , class Type4 , class Type5 , class Type6 >
void Murl::Debug::Error (const Char *format, const Type1 v1, const Type2 v2, const Type3 v3, const Type4 v4, const Type5 v5, const Type6 v6)
 Write an error with format string and 6 arguments. More...
 

Detailed Description

Assert, Trace and Error functions and macros.

Macro Definition Documentation

◆ MURL_ERROR

#define MURL_ERROR (   ...)

Write an error message with the current function name plus line number and a variable number of arguments.

The details of the function name can be configured by the Murl::IAppConfiguration::SetDebugOutputFunctionVerbosity() method.
The error is written with the Murl::Debug::Logger::PrintErrorVA() method.

Parameters
...The message format string and a variable number of arguments.

◆ MURL_WARNING

#define MURL_WARNING (   ...)

Write an warning message with the current function name plus line number and a variable number of arguments.

The details of the function name can be configured by the Murl::IAppConfiguration::SetDebugOutputFunctionVerbosity() method.
The error is written with the Murl::Debug::Logger::PrintWarningVA() method.

Parameters
...The message format string and a variable number of arguments.

◆ MURL_ERROR_TIME_BEGIN

#define MURL_ERROR_TIME_BEGIN (   key)

Begin a time measurement for error output.

Parameters
keyA unique key to differentiate multiple measurement statements within the current scope.

◆ MURL_ERROR_TIME_END

#define MURL_ERROR_TIME_END (   key,
  message 
)

End a time measurement and write an error message with the current function name plus line number.

The details of the function name can be configured by the Murl::IAppConfiguration::SetDebugOutputFunctionVerbosity() method.
The error is written with the Murl::Debug::Logger::PrintErrorVA() method.

Parameters
keyThe unique key used in MURL_ERROR_TIME_BEGIN().
messageThe message string in front of the time.

Function Documentation

◆ Error() [1/7]

void Murl::Debug::Error ( const Char message)
inline

Write an error message string.

The error is written with the Logger::PrintError() method.

Parameters
messageThe message string to write.

References Murl::Debug::Logger::PrintError().

Referenced by Murl::Util::MessageMethod< MessageClass, ObjectClass >::Execute().

◆ Error() [2/7]

template<class Type1 >
void Murl::Debug::Error ( const Char format,
const Type1  v1 
)

Write an error with format string and 1 argument.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1The argument for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().

◆ Error() [3/7]

template<class Type1 , class Type2 >
void Murl::Debug::Error ( const Char format,
const Type1  v1,
const Type2  v2 
)

Write an error with format string and 2 arguments.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1,v2The arguments for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().

◆ Error() [4/7]

template<class Type1 , class Type2 , class Type3 >
void Murl::Debug::Error ( const Char format,
const Type1  v1,
const Type2  v2,
const Type3  v3 
)

Write an error with format string and 3 arguments.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1,v2,v3The arguments for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().

◆ Error() [5/7]

template<class Type1 , class Type2 , class Type3 , class Type4 >
void Murl::Debug::Error ( const Char format,
const Type1  v1,
const Type2  v2,
const Type3  v3,
const Type4  v4 
)

Write an error with format string and 4 arguments.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1,v2,v3,v4The arguments for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().

◆ Error() [6/7]

template<class Type1 , class Type2 , class Type3 , class Type4 , class Type5 >
void Murl::Debug::Error ( const Char format,
const Type1  v1,
const Type2  v2,
const Type3  v3,
const Type4  v4,
const Type5  v5 
)

Write an error with format string and 5 arguments.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1,v2,v3,v4,v5The arguments for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().

◆ Error() [7/7]

template<class Type1 , class Type2 , class Type3 , class Type4 , class Type5 , class Type6 >
void Murl::Debug::Error ( const Char format,
const Type1  v1,
const Type2  v2,
const Type3  v3,
const Type4  v4,
const Type5  v5,
const Type6  v6 
)

Write an error with format string and 6 arguments.

The error is written with the Logger::PrintError() method.

Parameters
formatThe format string to write.
v1,v2,v3,v4,v5,v6The arguments for the format string.

References Murl::Debug::Logger::PrintError(), and Murl::Util::PrintToString().


Copyright © 2011-2024 Spraylight GmbH.