Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
samurai::LogManager Struct Reference

#include <log.h>

Collaboration diagram for samurai::LogManager:
Collaboration graph

Public Member Functions

void init (std::string name)
 
void log (const char *l, int type=samurai::logNormal)
 

Public Attributes

std::string name = ""
 
bool firstLog = 0
 
std::deque< std::string > internalLogs
 

Static Public Attributes

static constexpr const char * DefaultLogFile = SAMURAI_RESOURCES_PATH "logs.txt"
 
static constexpr int maxInternalLogCount = 200
 

Private Member Functions

void logToFile (const char *l, int type=samurai::logNormal)
 
void logInternally (const char *l, int type=samurai::logNormal)
 

Detailed Description

Definition at line 15 of file log.h.

Member Function Documentation

◆ init()

void samurai::LogManager::init ( std::string name)

Definition at line 6 of file log.cpp.

Here is the caller graph for this function:

◆ log()

void samurai::LogManager::log ( const char * l,
int type = samurai::logNormal )

Definition at line 14 of file log.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logInternally()

void samurai::LogManager::logInternally ( const char * l,
int type = samurai::logNormal )
private

Definition at line 58 of file log.cpp.

Here is the call graph for this function:

◆ logToFile()

void samurai::LogManager::logToFile ( const char * l,
int type = samurai::logNormal )
private

Definition at line 45 of file log.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ DefaultLogFile

constexpr const char* samurai::LogManager::DefaultLogFile = SAMURAI_RESOURCES_PATH "logs.txt"
staticconstexpr

Definition at line 18 of file log.h.

◆ firstLog

bool samurai::LogManager::firstLog = 0

Definition at line 30 of file log.h.

◆ internalLogs

std::deque<std::string> samurai::LogManager::internalLogs

Definition at line 32 of file log.h.

◆ maxInternalLogCount

constexpr int samurai::LogManager::maxInternalLogCount = 200
staticconstexpr

Definition at line 33 of file log.h.

◆ name

std::string samurai::LogManager::name = ""

Definition at line 29 of file log.h.


The documentation for this struct was generated from the following files: