~ubuntu-branches/ubuntu/vivid/silversearcher-ag/vivid-proposed

« back to all changes in this revision

Viewing changes to src/log.h

  • Committer: Package Import Robot
  • Author(s): Hajime Mizuno
  • Date: 2013-02-13 20:31:42 UTC
  • Revision ID: package-import@ubuntu.com-20130213203142-drq8ipcuy51r5kyp
Tags: upstream-0.0~20130213+git55028b4e
ImportĀ upstreamĀ versionĀ 0.0~20130213+git55028b4e

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef LOG_H
 
2
#define LOG_H
 
3
 
 
4
#include <stdarg.h>
 
5
 
 
6
enum log_level {
 
7
    LOG_LEVEL_DEBUG = 10,
 
8
    LOG_LEVEL_MSG   = 20,
 
9
    LOG_LEVEL_WARN  = 30,
 
10
    LOG_LEVEL_ERR   = 40
 
11
};
 
12
 
 
13
void set_log_level(enum log_level threshold);
 
14
 
 
15
void log_debug(const char *fmt, ...);
 
16
void log_msg(const char *fmt, ...);
 
17
void log_warn(const char *fmt, ...);
 
18
void log_err(const char *fmt, ...);
 
19
 
 
20
void vplog(const unsigned int level, const char *fmt, va_list args);
 
21
void plog(const unsigned int level, const char *fmt, ...);
 
22
 
 
23
#endif