Stardew Engine
Loading...
Searching...
No Matches
Log.h
Go to the documentation of this file.
1#ifndef STARDEW_LOG_H
2#define STARDEW_LOG_H
3
4#include <stdarg.h>
5
14
15int vLog_Fmt(const char* fmt, enum LogLvl lvl, va_list args);
16
17int Log_Fmt(const char* fmt, enum LogLvl lvl, ...);
18
19int Log_Verbose(const char* fmt, ...);
20
21int Log_Info(const char* fmt, ...);
22
23int Log_Warning(const char* fmt, ...);
24
25int Log_Error(const char* fmt, ...);
26
27int Log_Init();
28
29void Log_DeInit();
30
32void Log_SetLevel(enum LogLvl lvl);
33
34#endif
void Log_DeInit()
Definition Log.c:44
void Log_SetLevel(enum LogLvl lvl)
logs with a level lower than this will be dropped
Definition Log.c:30
int Log_Fmt(const char *fmt, enum LogLvl lvl,...)
Definition Log.c:110
int Log_Info(const char *fmt,...)
Definition Log.c:119
int Log_Error(const char *fmt,...)
Definition Log.c:137
LogLvl
Definition Log.h:7
@ LogLvl_Error
Definition Log.h:11
@ LogLvl_Warning
Definition Log.h:10
@ LogLvl_NumLevels
Definition Log.h:12
@ LogLvl_Verbose
Definition Log.h:8
@ LogLvl_Info
Definition Log.h:9
int Log_Verbose(const char *fmt,...)
Definition Log.c:101
int Log_Warning(const char *fmt,...)
Definition Log.c:128
int Log_Init()
Definition Log.c:35
int vLog_Fmt(const char *fmt, enum LogLvl lvl, va_list args)
Definition Log.c:53
int cJSON_bool fmt
Definition cJSON.h:166