Added clicon_log_init(.., CLICON_LOG_FILE) option and clicon_log_file() for c\
ases where neither syslog or stderr is useful.
This commit is contained in:
parent
156660419e
commit
5164db3603
10 changed files with 75 additions and 31 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#define CLICON_LOG_SYSLOG 1 /* print logs on syslog */
|
||||
#define CLICON_LOG_STDERR 2 /* print logs on stderr */
|
||||
#define CLICON_LOG_STDOUT 4 /* print logs on stdout */
|
||||
#define CLICON_LOG_FILE 8 /* print logs on clicon_log_filename */
|
||||
|
||||
/*
|
||||
* Types
|
||||
|
|
@ -55,11 +56,12 @@ typedef int (clicon_log_notify_t)(int level, char *msg, void *arg);
|
|||
*/
|
||||
extern int debug;
|
||||
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
int clicon_log_init(char *ident, int upto, int flags);
|
||||
int clicon_log_exit(void);
|
||||
int clicon_log_file(char *filename);
|
||||
int clicon_get_logflags(void);
|
||||
int clicon_log_str(int level, char *msg);
|
||||
#if defined(__GNUC__) && __GNUC__ >= 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue