Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Log to ILog with Log's being an implementation using Commo…
…ns Logging.
- Loading branch information
Showing
25 changed files
with
232 additions
and
111 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
53 changes: 53 additions & 0 deletions
53
symmetric/src/main/java/org/jumpmind/symmetric/common/logging/ILog.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,53 @@ | ||
package org.jumpmind.symmetric.common.logging; | ||
|
||
import java.util.Locale; | ||
|
||
public interface ILog { | ||
|
||
public abstract String getMessage(String key); | ||
|
||
public abstract String getMessage(String key, Object... args); | ||
|
||
public abstract Locale getLocale(); | ||
|
||
public abstract void setLocale(Locale locale); | ||
|
||
public abstract String getBundleName(); | ||
|
||
public abstract void setBundleName(String bundleName); | ||
|
||
public abstract void debug(String messageKey); | ||
|
||
public abstract void debug(String messageKey, Throwable t); | ||
|
||
public abstract void debug(String messageKey, Object... args); | ||
|
||
public abstract void debug(String messageKey, Throwable t, Object... args); | ||
|
||
public abstract void info(String messageKey); | ||
|
||
public abstract void info(String messageKey, Throwable t); | ||
|
||
public abstract void info(String messageKey, Object... args); | ||
|
||
public abstract void info(String messageKey, Throwable t, Object... args); | ||
|
||
public abstract void warn(String messageKey); | ||
|
||
public abstract void warn(String messageKey, Throwable t); | ||
|
||
public abstract void warn(String messageKey, Object... args); | ||
|
||
public abstract void warn(String messageKey, Throwable t, Object... args); | ||
|
||
public abstract void error(String messageKey); | ||
|
||
public abstract void error(String messageKey, Throwable t); | ||
|
||
public abstract void error(String messageKey, Object... args); | ||
|
||
public abstract void error(String messageKey, Throwable t, Object... args); | ||
|
||
public abstract void error(Throwable t); | ||
|
||
} |
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
Oops, something went wrong.