forked from gameontext/signed
-
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.
Remove non native working bits, alter logging.
- Loading branch information
1 parent
889e69c
commit 3f95420
Showing
9 changed files
with
70 additions
and
59 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
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
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,29 @@ | ||
package org.gameontext.signed; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
public class SignedLogger { | ||
|
||
final static Logger logger = Logger.getLogger("org.gameontext.signed"); | ||
|
||
final static void writeLog(Level level, Object source, String message, Object... args) { | ||
|
||
//hack hack.. can't enable FINEST for native apps??!! | ||
if(level.equals(Level.FINEST))level = Level.FINER; | ||
|
||
if (logger.isLoggable(level)) { | ||
logger.logp(level, source.getClass().getName(), "", message, args); | ||
} | ||
} | ||
|
||
final static void writeLog(Level level, Object source, String message, Throwable thrown) { | ||
|
||
//hack hack.. can't enable FINEST for native apps??!! | ||
if(level.equals(Level.FINEST))level = Level.FINER; | ||
|
||
if (logger.isLoggable(level)) { | ||
logger.logp(level, source.getClass().getName(), "", message, thrown); | ||
} | ||
} | ||
} |
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
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