Changeset 1315 for trunk/Sources/BXLogger.m
- Timestamp:
- 06/29/09 14:37:31 (13 months ago)
- Files:
-
- 1 modified
-
trunk/Sources/BXLogger.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sources/BXLogger.m
r1230 r1315 121 121 const char* file = LastPathComponent (fileName); 122 122 123 NSString* date = (id) CFRetain ([[NSDate date] descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F" timeZone: nil locale: nil]);124 NSString* message = (id) CFRetain ([[[NSString alloc] initWithFormat: messageFmt arguments: args] autorelease]);123 NSString* date = [[NSDate date] descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F" timeZone: nil locale: nil]; 124 NSString* message = [[[NSString alloc] initWithFormat: messageFmt arguments: args] autorelease]; 125 125 126 126 const char isMain = ([NSThread isMainThread] ? 'm' : 's'); … … 129 129 130 130 //For GC. 131 CFRelease (date);132 CFRelease (message);131 [date self]; 132 [message self]; 133 133 134 134 if (executable)
