-
The change proposed in the details is not complete. The following change would fix the problem
NSString *expandedFileName = [fileName stringByExpandingTildeInPath];
if (![fileManager fileExistsAtPath: expandedfileName]) {
// if the we cannot create the file, raise a FileNotFoundException
// if (![fileManager createFileAtPath: fileName...
2009-11-05 04:18:53 UTC by martin_heinrich
-
The L4FileAppender class does not support the usage of ~ in the path name. This makes it very complicated to place files into the standard directory ~/Library/Logs.
This could be fixed by changing line 86 from
if (![fileManager createFileAtPath: fileName contents: nil attributes: nil]) {
to
if (![fileManager createFileAtPath: [fileName stringByExpandingTildeInPath] contents: nil attributes:
2009-11-05 03:34:24 UTC by martin_heinrich
-
The L4FileAppender converts a file name specified via a L4Property object to lowercase. As the folder and file names are case sensitive this alters the path.
Line 22:
NSString *buf = [[initProperties stringForKey: @"File"] lowercaseString];
should be
NSString *buf = [initProperties stringForKey: @"File"];.
2009-11-05 03:30:09 UTC by martin_heinrich
-
L4FileAppender makes the filename lowercase no matter what. This can cause problems when writing to network volumes, whose paths are case sensitive.
2009-10-26 23:05:28 UTC by anwnn
-
treaves committed revision 110 to the Log4Cocoa SVN repository, changing 7 files.
2009-08-20 01:06:47 UTC by treaves
-
treaves committed revision 109 to the Log4Cocoa SVN repository, changing 27 files.
2009-08-19 01:59:28 UTC by treaves
-
treaves committed revision 108 to the Log4Cocoa SVN repository, changing 4 files.
2009-08-19 01:41:21 UTC by treaves
-
treaves committed revision 107 to the Log4Cocoa SVN repository, changing 8 files.
2009-08-02 00:54:40 UTC by treaves
-
treaves committed revision 106 to the Log4Cocoa SVN repository, changing 3 files.
2009-07-31 03:00:14 UTC by treaves
-
treaves committed revision 105 to the Log4Cocoa SVN repository, changing 1 files.
2009-07-31 01:29:34 UTC by treaves