mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-26 07:24:31 +00:00
tweak log4javascript.Level, change from enum to class with static fields to match implementation. (#9498)
This commit is contained in:
committed by
Masahiro Wakame
parent
0060fb0862
commit
15ad62197f
@@ -2,7 +2,14 @@
|
||||
|
||||
function aSimpleLoggingMessageString() {
|
||||
var log = log4javascript.getDefaultLogger();
|
||||
log.info("Hello World");
|
||||
log.info("Hello World");
|
||||
}
|
||||
|
||||
function compareLogLevelsAndLog() {
|
||||
var log = log4javascript.getDefaultLogger();
|
||||
if (log4javascript.Level.INFO.isGreaterOrEqual(log.getLevel())) {
|
||||
log.log(log4javascript.Level.INFO, ["Info"]);
|
||||
}
|
||||
}
|
||||
|
||||
function loggingAnErrorWithAMessage() {
|
||||
|
||||
Reference in New Issue
Block a user