]> Dogcows Code - chaz/thecheat/blob - ChazLog.h
update contact information and project URL
[chaz/thecheat] / ChazLog.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #ifndef _ChazLog_h_
14 #define _ChazLog_h_
15
16 #if defined(__cplusplus)
17 extern "C" {
18 #endif
19
20 #import <Cocoa/Cocoa.h>
21
22
23 /* Enable and disable logging to the standard console. */
24 void ChazLogEnable();
25 void ChazLogDisable();
26
27 /* Required for logging to a debug file. */
28 void ChazDebugSetup();
29 void ChazDebugCleanup();
30
31 /* Print a log message to the standard console. */
32 void ChazLog( NSString *format, ... );
33 /* Print a log message to the debug file (if available). */
34 void ChazDebug( NSString *format, ... );
35
36 /* Returns true if debug mode is active. */
37 BOOL ChazIsDebugging();
38 /* Returns the absolute filepath of the debug log. */
39 NSString *ChazDebugLogPath();
40
41 /* Makes ChazLog() equivalent to ChazDebug(). */
42 // call this after ChazDebugSetup()
43 // this will automatically enable logs
44 void ChazMapLogToDebug();
45
46 /* Opens the log file using the default text editor. */
47 void ChazOpenDebugLog();
48
49
50 #if defined(__cplusplus)
51 }
52 #endif
53
54
55 #endif /* _ChazLog_h_ */
This page took 0.034901 seconds and 4 git commands to generate.