SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SA::Log Class Reference

Log type implementation. More...

#include <Log.hpp>

Inheritance diagram for SA::Log:
SA::Exception SA::Exception_Equals SA::Exception_IsValid SA::Exception_NotEquals SA::Exception_Nullptr SA::Exception_OutOfRange SA::Exception_ReachBadAPI SA::Exception_Equals0 SA::Exception_Equals1 SA::Exception_NotEquals0 SA::Exception_NotEquals1 SA::Exception_OutOfArrayRange SA::Exception_QueryBadAPIObject

Public Member Functions

 Log ()=default
 Default constructor.
 
 Log (std::wstring _file, uint32_t _line, std::string _function, std::wstring _msg=L"Hello, World!", LogLevel _level=LogLevel::Normal, std::wstring _chanName=L"Default", std::wstring _details=L"", uint32_t _frameNum=0u, std::string _backtrace="") noexcept
 Value Move Constructor.
 

Public Attributes

std::wstring file
 File name.
 
uint32_t line = 0u
 Line number.
 
std::string function
 Function name.
 
std::wstring msg = L"Hello, World!"
 User string message.
 
LogLevel level = LogLevel::Normal
 Output level.
 
std::wstring chanName = L"Default"
 Output channel name.
 
std::wstring details
 Additional details string.
 
uint32_t frameNum = 0u
 Frame number.
 
std::string backtrace
 backtracing of logging call.
 
DateTime date
 Date time.
 

Detailed Description

Log type implementation.

Constructor & Destructor Documentation

◆ Log()

SA::Log::Log ( std::wstring _file,
uint32_t _line,
std::string _function,
std::wstring _msg = L"Hello, World!",
LogLevel _level = LogLevel::Normal,
std::wstring _chanName = L"Default",
std::wstring _details = L"",
uint32_t _frameNum = 0u,
std::string _backtrace = "" )
noexcept

Value Move Constructor.

Parameters
[in]_fileFile of the Log.
[in]_lineLine of the Log.
[in]_functionFunction of the Log.
[in]_msgMessage of the Log.
[in]_levelLevel of the Log.
[in]_chanNameChannel's name of the Log.
[in]_detailsAdditional details to display.
[in]_frameNumFrame number of the Log.
[in]_backtracebacktracing of logging call.

The documentation for this class was generated from the following file: