File Log.c

FileList > core > Log.c

Go to the source code of this file

  • #include "Log.h"
  • #include <stdio.h>
  • #include <string.h>
  • #include <time.h>
  • #include "Thread.h"
  • #include "ANSIColourCodes.h"
  • #include "main.h"

Public Attributes

Type Name
char * gColouredLogLevelNames = /* multi line expression */
char * gLogLevelNames = /* multi line expression */

Public Static Attributes

Type Name
FILE * gLogFile = NULL
enum LogLvl gLogLevel = LogLvl\_Verbose
CrossPlatformMutex gLogMtx

Public Functions

Type Name
void Log_DeInit ()
int Log_Error (const char * fmt, ...)
int Log_Fmt (const char * fmt, enum LogLvl lvl, ...)
int Log_Info (const char * fmt, ...)
int Log_Init ()
void Log_SetLevel (enum LogLvl lvl)
logs with a level lower than this will be dropped
int Log_Verbose (const char * fmt, ...)
int Log_Warning (const char * fmt, ...)
int vLog_Fmt (const char * fmt, enum LogLvl lvl, va_list args)

Public Attributes Documentation

variable gColouredLogLevelNames

char* gColouredLogLevelNames[LogLvl_NumLevels];

variable gLogLevelNames

char* gLogLevelNames[LogLvl_NumLevels];

Public Static Attributes Documentation

variable gLogFile

FILE* gLogFile;

variable gLogLevel

enum LogLvl gLogLevel;

variable gLogMtx

CrossPlatformMutex gLogMtx;

Public Functions Documentation

function Log_DeInit

void Log_DeInit () 

function Log_Error

int Log_Error (
    const char * fmt,
    ...
) 

function Log_Fmt

int Log_Fmt (
    const char * fmt,
    enum LogLvl lvl,
    ...
) 

function Log_Info

int Log_Info (
    const char * fmt,
    ...
) 

function Log_Init

int Log_Init () 

function Log_SetLevel

logs with a level lower than this will be dropped

void Log_SetLevel (
    enum LogLvl lvl
) 

function Log_Verbose

int Log_Verbose (
    const char * fmt,
    ...
) 

function Log_Warning

int Log_Warning (
    const char * fmt,
    ...
) 

function vLog_Fmt

int vLog_Fmt (
    const char * fmt,
    enum LogLvl lvl,
    va_list args
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/core/Log.c