Modifier and Type | Field and Description |
---|---|
protected boolean |
hideErrors |
protected Logger |
logger |
protected boolean |
output |
protected String |
prefix |
protected String |
url |
Constructor and Description |
---|
DebugOpts()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.json.simple.JSONObject |
attachInfo() |
boolean |
doHideErrors()
Returns
true if errors should not be printed to the debug
Logger |
boolean |
doOutput()
Returns
true if output is printed to the debug Logger |
Logger |
getLogger() |
String |
getPrefix()
Returns the logging prefix used for debug output.
|
String |
getUrl()
Returns the URL that errors are reported to
|
void |
hideErrors(boolean hide)
Toggles whether or not to print errors to the debugger
|
void |
setLogger(Logger logger) |
void |
setUrl(String url)
Sets the URL to report errors to
|
void |
toggleOutput(boolean output)
Toggles whether or not to print information to the debugger
|
protected String prefix
protected boolean output
protected boolean hideErrors
protected Logger logger
protected String url
public DebugOpts()
public boolean doOutput()
true
if output is printed to the debug Logger
true
if output is printedpublic void toggleOutput(boolean output)
output
- true
to enable outputpublic void hideErrors(boolean hide)
hide
- true
to not print stack traces to consolepublic boolean doHideErrors()
true
if errors should not be printed to the debug
Logger
true
if errors are hiddenpublic String getUrl()
public void setUrl(String url)
url
- The error reporting URLpublic String getPrefix()
plugin.yml
file.public org.json.simple.JSONObject attachInfo()
public Logger getLogger()
public void setLogger(Logger logger)
Copyright © 2017. All rights reserved.