PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
Gedim::LogFile Class Reference

#include <IOUtilities.hpp>

Static Public Member Functions

static void PrintLine (const char &symbol=' ')
 
static void PrintWarningMessage (const std::string &message, va_list args)
 
static void PrintErrorMessage (const std::string &message, va_list args)
 
static void PrintInfoMessage (const std::string &message, va_list args)
 
static void PrintDebugMessage (const std::string &message, va_list args)
 
static void CheckFileSize (const std::string &nameFile)
 Check if file reach the maximum size and create new file.
 
static double GetFileSize (const std::string &nameFile)
 Get the file size in MB.
 

Static Public Attributes

static int LogMaxFileSize = 2
 Max file log size (MB)
 
static int LogMaxNumFiles = 5
 Max number of backup log files to maintain.
 
static std::string LogFolder = "Log"
 Folder name where log files of the program are.
 
static std::string LogNameFile = "LogFile.log"
 File name of Log.
 

Member Function Documentation

◆ CheckFileSize()

void Gedim::LogFile::CheckFileSize ( const std::string &  nameFile)
static

Check if file reach the maximum size and create new file.

◆ GetFileSize()

double Gedim::LogFile::GetFileSize ( const std::string &  nameFile)
static

Get the file size in MB.

◆ PrintDebugMessage()

void Gedim::LogFile::PrintDebugMessage ( const std::string &  message,
va_list  args 
)
static

◆ PrintErrorMessage()

void Gedim::LogFile::PrintErrorMessage ( const std::string &  message,
va_list  args 
)
static

◆ PrintInfoMessage()

void Gedim::LogFile::PrintInfoMessage ( const std::string &  message,
va_list  args 
)
static

◆ PrintLine()

void Gedim::LogFile::PrintLine ( const char symbol = ' ')
static

◆ PrintWarningMessage()

void Gedim::LogFile::PrintWarningMessage ( const std::string &  message,
va_list  args 
)
static

Member Data Documentation

◆ LogFolder

string Gedim::LogFile::LogFolder = "Log"
static

Folder name where log files of the program are.

◆ LogMaxFileSize

int Gedim::LogFile::LogMaxFileSize = 2
static

Max file log size (MB)

◆ LogMaxNumFiles

int Gedim::LogFile::LogMaxNumFiles = 5
static

Max number of backup log files to maintain.

◆ LogNameFile

string Gedim::LogFile::LogNameFile = "LogFile.log"
static

File name of Log.


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