diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2015-09-08 11:36:50 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2015-09-08 11:36:50 -0400 |
commit | d8ee553254a4cba7b3311bdc16d1185486b0efd2 (patch) | |
tree | 2e18e0c5fd1cf61ad5142c88fe23a1060de81896 /Foundation | |
parent | 3eb082def5c70d6566eb32cc9eea66aaf4832407 (diff) |
Fix up comments on filter
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMLogger.h | 4 | ||||
-rw-r--r-- | Foundation/GTMLogger.m | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Foundation/GTMLogger.h b/Foundation/GTMLogger.h index e71d56d..a776922 100644 --- a/Foundation/GTMLogger.h +++ b/Foundation/GTMLogger.h @@ -442,9 +442,9 @@ typedef enum { // Log Filters // -// Protocol to be imlemented by a GTMLogFilter instance. +// Protocol to be implemented by a GTMLogFilter instance. @protocol GTMLogFilter <NSObject> -// Returns YES if |msg| at |level| should be filtered out; NO otherwise. +// Returns YES if |msg| at |level| should be logged; NO otherwise. - (BOOL)filterAllowsMessage:(NSString *)msg level:(GTMLoggerLevel)level; @end // GTMLogFilter diff --git a/Foundation/GTMLogger.m b/Foundation/GTMLogger.m index 90fce3e..7c2a543 100644 --- a/Foundation/GTMLogger.m +++ b/Foundation/GTMLogger.m @@ -97,7 +97,7 @@ static GTMLogger *gSharedLogger = nil; // Don't trust NSFileHandle not to throw @try { - GTMLogBasicFormatter *formatter = [[[GTMLogBasicFormatter alloc] init] + GTMLogBasicFormatter *formatter = [[[GTMLogBasicFormatter alloc] init] autorelease]; GTMLogger *stdoutLogger = [self loggerWithWriter:[NSFileHandle fileHandleWithStandardOutput] |