public class Logger extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
debug |
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
create(Class cls)
If the "org.bytedeco.javacpp.logger" system property is set to "slf4j",
returns new
Slf4jLogger.Slf4jLogger(Class), else returns new Logger(). |
void |
debug(String s)
Calls
System.out.println(s). |
void |
error(String s)
Calls
System.err.println("Error: " + s). |
void |
info(String s)
Calls
System.out.println(s). |
boolean |
isDebugEnabled()
Returns the "org.bytedeco.javacpp.logger.debug" system property.
|
boolean |
isErrorEnabled()
Returns true.
|
boolean |
isInfoEnabled()
Returns true.
|
boolean |
isWarnEnabled()
Returns true.
|
void |
warn(String s)
Calls
System.err.println("Warning: " + s). |
public static Logger create(Class cls)
Slf4jLogger.Slf4jLogger(Class), else returns new Logger().public boolean isDebugEnabled()
public boolean isInfoEnabled()
public boolean isWarnEnabled()
public boolean isErrorEnabled()
public void debug(String s)
System.out.println(s).public void info(String s)
System.out.println(s).public void warn(String s)
System.err.println("Warning: " + s).public void error(String s)
System.err.println("Error: " + s).Copyright © 2017. All rights reserved.