Tidy logging and lose stdout hacks for _info.

This commit is contained in:
Nicholas Marriott
2008-08-08 17:35:42 +00:00
parent de0e1c6284
commit 8ed403e309
3 changed files with 90 additions and 67 deletions

11
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.180 2008-08-07 20:20:52 nicm Exp $ */
/* $Id: tmux.h,v 1.181 2008-08-08 17:35:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -1295,10 +1295,13 @@ int buffer_poll(struct pollfd *, struct buffer *, struct buffer *);
void buffer_flush(int, struct buffer *n, struct buffer *);
/* log.c */
void log_open(FILE *, int, int);
#define LOG_FACILITY LOG_DAEMON
void log_open_syslog(int);
void log_open_tty(int);
void log_open_file(int, const char *);
void log_close(void);
void log_vwrite(FILE *, int, const char *, va_list);
void log_write(FILE *, int, const char *, ...);
void log_vwrite(int, const char *, va_list);
void log_write(int, const char *, ...);
void printflike1 log_warn(const char *, ...);
void printflike1 log_warnx(const char *, ...);
void printflike1 log_info(const char *, ...);