| 1 | /* $Header$ */ |
| 2 | |
| 3 | /* Copyright (c) 2011 by Michael J. Roberts. All Rights Reserved. */ |
| 4 | /* |
| 5 | Name |
| 6 | vmlog.h - system log file |
| 7 | Function |
| 8 | Functions for writing messages to the system log file |
| 9 | Notes |
| 10 | Strings passed to vm_log_xxx functions are expected to be in the local |
| 11 | file system character set, unless otherwise noted per function. These |
| 12 | functions generally just write the bytes of the strings as given, |
| 13 | without any character set mapping, so it's up to the caller to map to |
| 14 | the file character set if necessary. Plain ASCII strings don't need |
| 15 | mapping, since virtually all modern machines use character sets that |
| 16 | include ASCII as a subset - this includes UTF-8, ISO-8859-X, Win CP12xx, |
| 17 | etc, but excludes 16-bit Unicode mappings (UCS-2) and EBCDIC. |
| 18 | Modified |
| 19 | 12/01/11 MJRoberts - Creation |
| 20 | */ |
| 21 | |
| 22 | #ifndef VMLOG_H |
| 23 | #define VMLOG_H |
| 24 | |
| 25 | #include "t3std.h" |
| 26 | #include "vmglob.h" |
| 27 | |
| 28 | /* log a message with sprintf-style formatting */ |
| 29 | void vm_log_fmt(VMG_ const char *fmt, ...); |
| 30 | |
| 31 | /* log a message string */ |
| 32 | void vm_log(VMG_ const char *str, size_t len); |
| 33 | |
| 34 | #endif /* VMLOG_H */ |
| 35 |