| 1 |
sysadm |
1.1 |
/***************************************************************************
|
| 2 |
|
|
log.h - description
|
| 3 |
|
|
-------------------
|
| 4 |
|
|
begin : Wed Mar 16 2004
|
| 5 |
|
|
copyright : (C) 2005 by Leaflet
|
| 6 |
|
|
email : leaflet@leafok.com
|
| 7 |
|
|
***************************************************************************/
|
| 8 |
|
|
|
| 9 |
|
|
/***************************************************************************
|
| 10 |
|
|
* *
|
| 11 |
|
|
* This program is free software; you can redistribute it and/or modify *
|
| 12 |
|
|
* it under the terms of the GNU General Public License as published by *
|
| 13 |
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
| 14 |
|
|
* (at your option) any later version. *
|
| 15 |
|
|
* *
|
| 16 |
|
|
***************************************************************************/
|
| 17 |
|
|
|
| 18 |
|
|
#ifndef _LOG_H_
|
| 19 |
|
|
#define _LOG_H_
|
| 20 |
|
|
|
| 21 |
sysadm |
1.4 |
#include <stddef.h>
|
| 22 |
|
|
|
| 23 |
sysadm |
1.1 |
extern int log_begin(char *file_log_std, char *file_log_err);
|
| 24 |
|
|
|
| 25 |
sysadm |
1.2 |
extern void log_end();
|
| 26 |
sysadm |
1.1 |
|
| 27 |
sysadm |
1.4 |
extern int log_head(char *buf, size_t len);
|
| 28 |
sysadm |
1.1 |
|
| 29 |
|
|
extern int log_std(const char *format, ...);
|
| 30 |
|
|
|
| 31 |
|
|
extern int log_error(const char *format, ...);
|
| 32 |
|
|
|
| 33 |
|
|
extern int log_std_redirect(int fd);
|
| 34 |
|
|
|
| 35 |
|
|
extern int log_err_redirect(int fd);
|
| 36 |
|
|
|
| 37 |
|
|
#endif //_LOG_H_
|