X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=ChazLog.h;fp=ChazLog.h;h=bc329a5a341cb21b2fb785f7ac70dfa9df18192a;hp=0000000000000000000000000000000000000000;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/ChazLog.h b/ChazLog.h new file mode 100644 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 + + +/* 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