]> Dogcows Code - chaz/thecheat/blob - ChazLog.h
bc329a5a341cb21b2fb785f7ac70dfa9df18192a
[chaz/thecheat] / ChazLog.h
1 //
2 // ChazLog.h
3 // Niobium
4 //
5 // Created by NB McGarvey on 9/6/04.
6 // Copyright 2004 NB McGarvey. All rights reserved.
7 //
8
9 #ifndef _ChazLog_h_
10 #define _ChazLog_h_
11
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15
16 #import <Cocoa/Cocoa.h>
17
18
19 /* Enable and disable logging to the standard console. */
20 void ChazLogEnable();
21 void ChazLogDisable();
22
23 /* Required for logging to a debug file. */
24 void ChazDebugSetup();
25 void ChazDebugCleanup();
26
27 /* Print a log message to the standard console. */
28 void ChazLog( NSString *format, ... );
29 /* Print a log message to the debug file (if available). */
30 void ChazDebug( NSString *format, ... );
31
32 /* Returns true if debug mode is active. */
33 BOOL ChazIsDebugging();
34 /* Returns the absolute filepath of the debug log. */
35 NSString *ChazDebugLogPath();
36
37 /* Makes ChazLog() equivalent to ChazDebug(). */
38 // call this after ChazDebugSetup()
39 // this will automatically enable logs
40 void ChazMapLogToDebug();
41
42 /* Opens the log file using the default text editor. */
43 void ChazOpenDebugLog();
44
45
46 #if defined(__cplusplus)
47 }
48 #endif
49
50
51 #endif /* _ChazLog_h_ */
This page took 0.030941 seconds and 3 git commands to generate.