galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages Concepts
galaxy::logging Namespace Reference

Classes

class  ConsoleSink
 Logs a message to the console. More...
 
class  FileSink
 
class  Log
 Sink based logging system. More...
 
struct  LogMessage
 Parts of a log message to be passed to sinks. More...
 
class  Sink
 A source for log messages to be recorded to. More...
 

Enumerations

enum class  LogLevel : int {
  _INFO_ = 0 , _DEBUG_ = 1 , _WARNING_ = 2 , _ERROR_ = 3 ,
  _FATAL_ = 4
}
 Used to determine filtering and colouring of log messages. More...
 

Functions

bool physfs_check (const int code) noexcept
 Call a physfs function with error handling and logs a message for you.
 
bool physfs_check (void *ptr) noexcept
 Call a physfs function with error handling and logs a message for you.
 

Enumeration Type Documentation

◆ LogLevel

enum class galaxy::logging::LogLevel : int
strong

Used to determine filtering and colouring of log messages.

Enumerator
_INFO_ 

Info Log Level.

_DEBUG_ 

Debug Log Level.

_WARNING_ 

Warning Log Level.

_ERROR_ 

Error Log Level.

_FATAL_ 

Fatal Log Level.

Definition at line 18 of file LogLevel.hpp.

Function Documentation

◆ physfs_check() [1/2]

bool galaxy::logging::physfs_check ( const int code)
noexcept

Call a physfs function with error handling and logs a message for you.

Parameters
codeThe code returned by physfs function.
Returns
True if function call succeeded.

Definition at line 18 of file PhysFSError.cpp.

+ Here is the caller graph for this function:

◆ physfs_check() [2/2]

bool galaxy::logging::physfs_check ( void * ptr)
noexcept

Call a physfs function with error handling and logs a message for you.

Parameters
ptrPointer returned by physfs function.
Returns
True if function call succeeded.

Definition at line 29 of file PhysFSError.cpp.