1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
21 //#define NO_DEBUG_LOG
23 /* defaults: write to file; write to stderr */
27 * close log file, shutdown logger
29 void dlogfDeinit (void);
32 * set output file name for log
33 * NULL: no file output
35 void dlogfSetFile (const char *fname
);
36 void dlogfSetStdErr (int doIt
);
38 void dlogf (const char *fmt
, ...) __attribute__((format(printf
, 1, 2)));
39 void dlogfVA (const char *fmt
, va_list ap
);
44 #define dlogfSetFile(fname)
45 #define dlogfSetStdErr(doIt)