Distributed File System
1
Distributed file system in C
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1
/* lib/log.h
2
*
3
* Librería súper sencilla para log's.
4
*
5
*/
6
#ifndef LOG_H_
7
#define LOG_H_
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
13
/* ----- Types ----- */
14
16
typedef
enum
{
17
INFO
,
18
WARN
,
19
ERROR
,
20
FATAL
,
21
}
LogLevel
;
22
23
/* ----- Functions ----- */
24
30
void
log
(
LogLevel
level,
const
char
* format, ...);
31
32
#ifdef __cplusplus
33
}
34
#endif
35
36
#endif
// LOG_H_ header
log
void log(LogLevel level, const char *format,...)
función de log
Definition
log.c:8
LogLevel
LogLevel
¿Cuál log prefieres?
Definition
log.h:16
ERROR
@ ERROR
Definition
log.h:19
FATAL
@ FATAL
Definition
log.h:20
INFO
@ INFO
Definition
log.h:17
WARN
@ WARN
Definition
log.h:18
src
lib
log.h
Generated by
1.14.0