]>
Dogcows Code - chaz/thecheat/blob - ChazLog.h
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
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.
16 #if defined(__cplusplus)
20 #import <Cocoa/Cocoa.h>
23 /* Enable and disable logging to the standard console. */
25 void ChazLogDisable();
27 /* Required for logging to a debug file. */
28 void ChazDebugSetup();
29 void ChazDebugCleanup();
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
, ... );
36 /* Returns true if debug mode is active. */
37 BOOL
ChazIsDebugging();
38 /* Returns the absolute filepath of the debug log. */
39 NSString
*ChazDebugLogPath();
41 /* Makes ChazLog() equivalent to ChazDebug(). */
42 // call this after ChazDebugSetup()
43 // this will automatically enable logs
44 void ChazMapLogToDebug();
46 /* Opens the log file using the default text editor. */
47 void ChazOpenDebugLog();
50 #if defined(__cplusplus)
55 #endif /* _ChazLog_h_ */
This page took 0.043166 seconds and 5 git commands to generate.