2 * Copyright 1995, 1996 Perforce Software. All rights reserved.
6 * ErrorLog.h - report layered errors
10 * ErrorLog - write errors to log/syslog (static)
14 * ErrorLog::Report() - blurt out the contents of the Error to stderr
15 * ErrorLog::Abort() - blurt out an error and exit
16 * ErrorLog::Fmt() - format an error message
18 * ErrorLog::SetLog() - redirect Abort() and Report() to named file
19 * ErrorLog::SetTag() - replace standard tag used by Report()
21 * ErrorLog::SetSyslog() - redirect error messages to syslog on UNIX.
22 * ErrorLog::UnsetSyslog() - Cancel syslog redirection. Revert to log file.
26 * class ErrorLog - write errors to log/syslog
32 static void Abort( const Error
*e
);
33 static void Report( const Error
*e
);
37 static void SetLog( const char *file
);
38 static void SetSyslog() { useSyslog
= 1; }
39 static void UnsetSyslog() { useSyslog
= 0; }
40 static void SetTag( const char *tag
) { errorTag
= tag
; }
44 static const char *errorTag
;
45 static void *errorLog
;
51 * AssertError() - in case you need a global error to Abort() on
54 extern Error AssertError
;