]> Dogcows Code - chaz/thecheat/blobdiff - ChazLog.h
The Cheat 1.2
[chaz/thecheat] / ChazLog.h
diff --git a/ChazLog.h b/ChazLog.h
new file mode 100644 (file)
index 0000000..bc329a5
--- /dev/null
+++ b/ChazLog.h
@@ -0,0 +1,51 @@
+//
+//  ChazLog.h
+//  Niobium
+//
+//  Created by NB McGarvey on 9/6/04.
+//  Copyright 2004 NB McGarvey. All rights reserved.
+//
+
+#ifndef _ChazLog_h_
+#define _ChazLog_h_
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#import <Cocoa/Cocoa.h>
+
+
+/* Enable and disable logging to the standard console. */
+void ChazLogEnable();
+void ChazLogDisable();
+
+/* Required for logging to a debug file. */
+void ChazDebugSetup();
+void ChazDebugCleanup();
+
+/* Print a log message to the standard console. */
+void ChazLog( NSString *format, ... );
+/* Print a log message to the debug file (if available). */
+void ChazDebug( NSString *format, ... );
+
+/* Returns true if debug mode is active. */
+BOOL ChazIsDebugging();
+/* Returns the absolute filepath of the debug log. */
+NSString *ChazDebugLogPath();
+
+/* Makes ChazLog() equivalent to ChazDebug(). */
+// call this after ChazDebugSetup()
+// this will automatically enable logs
+void ChazMapLogToDebug();
+
+/* Opens the log file using the default text editor. */
+void ChazOpenDebugLog();
+
+
+#if defined(__cplusplus)
+}
+#endif
+
+
+#endif /* _ChazLog_h_ */
\ No newline at end of file
This page took 0.018468 seconds and 4 git commands to generate.