-
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.
- Loading branch information
1 parent
d451897
commit 00c793b
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
4 changes: 3 additions & 1 deletion
4
easyloglib/src/main/java/lib/yamin/easylog/DefaultFormatter.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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package lib.yamin.easylog; | ||
|
||
import java.util.Locale; | ||
|
||
/** | ||
* Created by Yamin on 13-Dec-17. | ||
*/ | ||
public class DefaultFormatter extends EasyLogFormatter { | ||
|
||
@Override | ||
public String format(String classname, String methodName, int lineNumber) { | ||
return String.format("%s: %s(): %s => ", classname, methodName, lineNumber); | ||
return String.format(Locale.getDefault(), "[%s][%s()][%d]=> ", classname, methodName, lineNumber); | ||
} | ||
} |