PageRenderTime 22ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/slog.h

http://github.com/nicolasff/webdis
C++ Header | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | d9ff630eabdb219181b6a4956debfa4d MD5 | raw file
 1#ifndef SLOG_H
 2#define SLOG_H
 3
 4typedef enum {
 5	WEBDIS_ERROR = 0,
 6	WEBDIS_WARNING,
 7	WEBDIS_NOTICE,
 8	WEBDIS_INFO,
 9	WEBDIS_DEBUG
10} log_level;
11
12struct server;
13
14void
15slog_reload();
16
17void
18slog_init(struct server *s);
19
20void slog(struct server *s, log_level level,
21		const char *body, size_t sz);
22
23#endif