-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog.java
47 lines (42 loc) · 1.55 KB
/
log.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (C) 2010 WeaveBytes, Inc.,
*
* Confidential, all rights reserved. No distribution is permitted.
___ _______ ____ ________
\ \ __ / __| / \ / ___|
\ \ / \ / |_ / /\ \ / |_
\ \/ \/ /| _| / /__\ \/ /| _|
\ /\ / | |__/ ______ / | |___
\__/ \__/ |_______/ \ _/ |______|
___ __
______ | | ________ __ __ | |
/ ___| | | / __ \ | | | | _______| |
| | | | | | | | | | | | / ____| |
| |____| |__ | |__| |__| \____/ | \ \____| |
\_______|______\________/__ \________/__ \_________|
*/
//Description: log.java is the logger class for weavecloud
//Creation Date: August 30, 2011
//Authors : Simranpal Singh, Varinder Pal Singh
public class log {
public static void debug(String msg) {
if(Config.LOG_LEVEL <= Config.LOG_DEBUG)
System.out.println("[DEBUG] " + msg);
}
public static void info(String msg) {
if(Config.LOG_LEVEL <= Config.LOG_INFO)
System.out.println("[INFO] " + msg);
}
public static void warning(String msg) {
if(Config.LOG_LEVEL <= Config.LOG_WARNING)
System.out.println("[WARNING] " + msg);
}
public static void critical(String msg) {
if(Config.LOG_LEVEL <= Config.LOG_CRITICAL)
System.out.println("[CRITICAL] " + msg);
}
public static void error(String msg) {
if(Config.LOG_LEVEL <= Config.LOG_ERROR)
System.out.println("[ERROR] " + msg);
}
}