You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
350 B
20 lines
350 B
10 years ago
|
package mightypork.gamecore.logging.monitors;
|
||
10 years ago
|
|
||
10 years ago
|
|
||
10 years ago
|
import java.util.logging.Level;
|
||
|
|
||
|
|
||
10 years ago
|
public class LogToSysoutMonitor extends BaseLogMonitor {
|
||
10 years ago
|
|
||
10 years ago
|
@Override
|
||
10 years ago
|
protected void logMessage(Level level, String message)
|
||
10 years ago
|
{
|
||
10 years ago
|
if (level == Level.SEVERE || level == Level.WARNING) {
|
||
10 years ago
|
System.err.print(message);
|
||
10 years ago
|
} else {
|
||
|
System.out.print(message);
|
||
10 years ago
|
}
|
||
|
}
|
||
10 years ago
|
|
||
10 years ago
|
}
|