]> Dogcows Code - chaz/thecheat/blob - ChazLog.h
The Cheat 1.2.1
[chaz/thecheat] / ChazLog.h
1
2 // **********************************************************************
3 // The Cheat - A universal game cheater for Mac OS X
4 // (C) 2003-2005 Chaz McGarvey (BrokenZipper)
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 1, or (at your option)
9 // any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 //
20
21
22 #ifndef _ChazLog_h_
23 #define _ChazLog_h_
24
25 #if defined(__cplusplus)
26 extern "C" {
27 #endif
28
29 #import <Cocoa/Cocoa.h>
30
31
32 /* Enable and disable logging to the standard console. */
33 void ChazLogEnable();
34 void ChazLogDisable();
35
36 /* Required for logging to a debug file. */
37 void ChazDebugSetup();
38 void ChazDebugCleanup();
39
40 /* Print a log message to the standard console. */
41 void ChazLog( NSString *format, ... );
42 /* Print a log message to the debug file (if available). */
43 void ChazDebug( NSString *format, ... );
44
45 /* Returns true if debug mode is active. */
46 BOOL ChazIsDebugging();
47 /* Returns the absolute filepath of the debug log. */
48 NSString *ChazDebugLogPath();
49
50 /* Makes ChazLog() equivalent to ChazDebug(). */
51 // call this after ChazDebugSetup()
52 // this will automatically enable logs
53 void ChazMapLogToDebug();
54
55 /* Opens the log file using the default text editor. */
56 void ChazOpenDebugLog();
57
58
59 #if defined(__cplusplus)
60 }
61 #endif
62
63
64 #endif /* _ChazLog_h_ */
This page took 0.031908 seconds and 4 git commands to generate.