add support for using the '@' character in place of the rotation #, for situations where stupid config files treat '#' as the end of the line and beginning of a comment...
This commit is contained in:
@ -165,7 +165,7 @@ class LogWriter implements Runnable {
|
|||||||
private File getNextFile(String pattern) {
|
private File getNextFile(String pattern) {
|
||||||
File f = null;
|
File f = null;
|
||||||
|
|
||||||
if (pattern.indexOf('#') < 0) {
|
if ( (pattern.indexOf('#') < 0) && (pattern.indexOf('@') <= 0) ) {
|
||||||
return new File(pattern);
|
return new File(pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ class LogWriter implements Runnable {
|
|||||||
char c[] = pattern.toCharArray();
|
char c[] = pattern.toCharArray();
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
for (int i = 0; i < c.length; i++) {
|
for (int i = 0; i < c.length; i++) {
|
||||||
if (c[i] != '#')
|
if ( (c[i] != '#') && (c[i] != '@') )
|
||||||
buf.append(c[i]);
|
buf.append(c[i]);
|
||||||
else
|
else
|
||||||
buf.append(num);
|
buf.append(num);
|
||||||
|
Reference in New Issue
Block a user