Skip to content
Snippets Groups Projects
Commit 8b658ef8 authored by George Nachman's avatar George Nachman
Browse files

Change filename of autolog files

parent d5668e3c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -471,10 +471,14 @@ static NSString* SESSION_ARRANGEMENT_WORKING_DIRECTORY = @"Working Directory";
 
- (NSString *)_autoLogFilenameForTermId:(NSString *)termid
{
return [NSString stringWithFormat:@"%@/%@.%@.%d.%0x.log",
// $(LOGDIR)/YYYYMMDD_HHMMSS.$(NAME).wNtNpN.$(PID).$(RANDOM).log
return [NSString stringWithFormat:@"%@/%@.%@.%@.%d.%0x.log",
[addressBookEntry objectForKey:KEY_LOGDIR],
[[NSDate date] descriptionWithCalendarFormat:@"%Y%m%d_%H%M%S"
timeZone:nil
locale:nil],
[addressBookEntry objectForKey:KEY_NAME],
termid,
[[[NSDate date] description] stringByReplacingOccurrencesOfString:@"/" withString:@"."],
(int)getpid(),
(int)arc4random()];
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment