-
Notifications
You must be signed in to change notification settings - Fork 6
/
log.h
40 lines (32 loc) · 1.01 KB
/
log.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// --------------------------------------------------------------------------
//
// C Kong
// Copyright (C) 2018 Jeff Panici
// All rights reserved.
//
// This software source file is licensed according to the
// MIT License. Refer to the LICENSE file distributed along
// with this source file to learn more.
//
// --------------------------------------------------------------------------
#pragma once
typedef enum {
category_app,
category_error,
category_assert,
category_system,
category_audio,
category_video,
category_render,
category_input,
category_test,
category_reserved1,
category_reserved2,
category_custom
} log_category_t;
void log_init(void);
void log_warn(log_category_t category, const char* fmt, ...);
void log_debug(log_category_t category, const char* fmt, ...);
void log_error(log_category_t category, const char* fmt, ...);
void log_message(log_category_t category, const char* fmt, ...);
void log_critical(log_category_t category, const char* fmt, ...);