The GDASLLog is a wrapper around Apple's system log facility (man asl). More...
#import <GDASLLog.h>
Public Member Functions | |
| (id) | - initWithSender:facility:connectImmediately: |
| Designated initializer - inits with required parameters. | |
| (int) | - setLogFile: |
| Set's a log file to write all logs to. | |
| (void) | - alert: |
| Alert message. | |
| (void) | - critical: |
| Critical message. | |
| (void) | - debug: |
| Debug message. | |
| (void) | - emergency: |
| Emergency message. | |
| (void) | - error: |
| Error message. | |
| (void) | - info: |
| Info message. | |
| (void) | - notice: |
| Notice message. | |
| (void) | - warning: |
| Warning message. | |
| (void) | - close |
| Close this log. | |
Protected Attributes | |
| int | fd |
| File descriptor for log file. | |
| aslclient | client |
| Apple Sys Log client. | |
Properties | |
| Boolean | logToStdOut |
| Whether or not to log all messages to stdout as well. | |
The GDASLLog is a wrapper around Apple's system log facility (man asl).
| - (void) close |
Close this log.
If you call close directly this log won't work anymore - it's called when this object is deallocated.
| - (int) setLogFile: | (NSString *) | filePath |
Set's a log file to write all logs to.
If a log file isn't set the logs aren't stored, they're still visible in the console.