diff options
author | Roger Dingledine <arma@torproject.org> | 2002-06-26 22:45:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2002-06-26 22:45:49 +0000 |
commit | 9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a (patch) | |
tree | fac560bf2dce8a8d2b82e296b71ff24f59ab1a7a /src/common/log.h | |
parent | 766a465a6043ac4e643c398feb14f708fd0d863f (diff) | |
download | tor-9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a.tar.gz tor-9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a.zip |
Initial revision
svn:r2
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/common/log.h b/src/common/log.h new file mode 100644 index 0000000000..e70aa2f5bd --- /dev/null +++ b/src/common/log.h @@ -0,0 +1,40 @@ +/* + * log.h + * Logging facilities. + * + * Matej Pfajfar <mp292@cam.ac.uk> + */ + +/* + * Changes : + * $Log$ + * Revision 1.1 2002/06/26 22:45:50 arma + * Initial revision + * + * Revision 1.5 2002/01/26 18:52:00 mp292 + * Reviewed according to Secure-Programs-HOWTO. + * + * Revision 1.4 2001/12/18 10:37:47 badbytes + * Header files now only apply if they were not previously included from somewhere else. + * + * Revision 1.3 2001/12/07 09:38:03 badbytes + * Tested. + * + * Revision 1.2 2001/12/06 15:43:50 badbytes + * config.c compiles. Proceeding to test it. + * + * Revision 1.1 2001/11/21 23:03:41 mp292 + * log function coded and tested. + * Top-level makefile. + * + */ + +#ifndef __LOG_H + +#include <syslog.h> + +/* Outputs a message to stdout and also logs the same message using syslog. */ +void log(int severity, const char *format, ...); + +# define __LOG_H +#endif |