📄 logmanager.java
字号:
/* Ogre4J
Copyright (C) 2002 macross
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.ogre4j;
/**
* LogManager
*
* @author Ivica Aracic <ivica.aracic@bytelords.de>
*/
public class LogManager {
public static final int
LL_LOW = 1,
LL_NORMAL = 2,
LL_BOREME = 3,
LML_TRIVIAL = 1,
LML_NORMAL = 2,
LML_CRITICAL = 3;
private static LogManager singleton = new LogManager();
private LogManager() {}
public static LogManager instance() {
return singleton;
}
public Log createLog(String name) {
return createLog(name, false, true);
}
public native Log createLog(String name, boolean defaultLog, boolean debuggerOutput);
public native Log getLog(String name);
public native Log getDefaultLog();
void logMessage(String message) {
logMessage(message, LML_NORMAL);
}
public native void logMessage(String message, int logMessageLevel);
public native void setLogDetail(int logLevel);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -