-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9 ability to configure logging directory
* dedicated log4j file appender that is aware of application running directory * new -l or -logDir option * updated lo4j sample configuration
- Loading branch information
1 parent
e76adfb
commit 1dbb8ef
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ist/src/main/java/eu/jhouse/server/runner/ApplicationContextLog4jFileRollingAppender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package eu.jhouse.server.runner; | ||
|
||
import org.apache.log4j.RollingFileAppender; | ||
|
||
/** | ||
* @author tkucharski tomasz.kucharski@javart.eu | ||
* @since 29.01.12, 21:36 | ||
*/ | ||
public class ApplicationContextLog4jFileRollingAppender extends RollingFileAppender { | ||
|
||
@Override | ||
public void setFile(String file) { | ||
super.setFile(ConfigFileLocation.getLogDirectory()+file); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters