Patch by jeff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13782 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-06-06 05:22:45 +00:00
parent 43fd602c10
commit 53274007c6
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-06-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSLog.m: patch by Jeff Teunissen to avoid adding date/time
info when using syslog.
Wed Jun 5 17:46:47 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSLog.m (_NSLog_standard_printf_handler): Fixed

View file

@ -141,7 +141,12 @@ NSLogv (NSString* format, va_list args)
pid = (int)getpid();
#endif
prefix = [NSString
#ifdef HAVE_SYSLOG
if (GSUserDefaultsFlag(GSLogSyslog) == YES)
prefix = @"";
else
#endif
prefix = [NSString
stringWithFormat: @"%@ %@[%d] ",
[[NSCalendarDate calendarDate]
descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F"],