Skip to content

Commit

Permalink
#5 SimpleFileLoggerにファイルを開いた後のフックメソッドを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
cwan committed Jun 11, 2013
1 parent cce1d47 commit 09979c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion mikaboshi-java-utils-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.mikaboshi</groupId>
<artifactId>mikaboshi-java-utils</artifactId>
<version>1.1.9-SNAPSHOTs</version>
<version>1.1.9-SNAPSHOT</version>
<url>https://github.com/cwan/mikaboshi-java-utils</url>
<name>mikaboshi-java-utils</name>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* このクラスはログ出力先について同期を保証する。
*
* @author Takuma Umezawa
* @version 1.1.9
*/
public class SimpleFileLogger {

Expand Down Expand Up @@ -81,6 +82,9 @@ public void setCloseOnShutdown(boolean closeOnShutdown) {
this.closeOnShutdown = closeOnShutdown;
}

protected void afterOpen() {
}

private void open() throws IOException {

try {
Expand Down Expand Up @@ -112,6 +116,8 @@ public void run() {
});

this.lastRotateCheckTime = System.currentTimeMillis();

afterOpen();
}

/**
Expand Down

0 comments on commit 09979c5

Please sign in to comment.