SystemOutLoggerpublic class SystemOutLogger extends POILogger A logger class that strives to make it as easy as possible for
developers to write log calls, while simultaneously making those
calls as cheap as possible by performing lazy evaluation of the log
message. |
Fields Summary |
---|
private String | cat |
Methods Summary |
---|
public boolean | check(int level)Check if a logger is enabled to log at the specified level
int currentLevel = Integer.parseInt(System.getProperty("poi.log.level", WARN + ""));
if (level >= currentLevel)
return true;
else
return false;
| public void | initialize(java.lang.String cat)
this.cat=cat;
| public void | log(int level, java.lang.Object obj1)Log a message
if (check(level))
System.out.println("["+cat+"] "+obj1);
|
|