[Java] Class Logger
- org.codehaus.groovy.tools.shell.util.Logger
public final class Logger extends Object
Provides a very, very basic logging API.
Field Summary
Modifiers | Name | Description |
---|---|---|
static IO | io | |
String | name |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public static Logger |
create(Class type) | |
public static Logger |
create(Class type, String suffix) | |
public void |
debug(Object msg) | |
public void |
debug(Object msg, Throwable cause) | |
public void |
error(Object msg) | |
public void |
error(Object msg, Throwable cause) | |
public boolean |
isDebug() | |
public boolean |
isDebugEnabled() | |
public void |
warn(Object msg) | |
public void |
warn(Object msg, Throwable cause) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static IO io
public final String name
Method Detail
public static Logger create(Class type)
public static Logger create(Class type, String suffix)
public void debug(Object msg)
public void debug(Object msg, Throwable cause)
public void error(Object msg)
public void error(Object msg, Throwable cause)
public boolean isDebug()
public boolean isDebugEnabled()
public void warn(Object msg)
public void warn(Object msg, Throwable cause)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/tools/shell/util/Logger.html