diff --git a/apidocs/allclasses-frame.html b/apidocs/allclasses-frame.html index 0b97a41..d7c6020 100644 --- a/apidocs/allclasses-frame.html +++ b/apidocs/allclasses-frame.html @@ -2,16 +2,18 @@
- + -The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
ChatColor values to their JAnsi equivalents,
+ so that messages logged to the console are formatted correctly.ChatColors.debug messages currently enabled?error messages currently enabled?info messages currently enabled?trace messages currently enabled?warn messages currently enabled?ChatColor directives to their JAnsi equivalents.public final class BukkitColorMapper +extends Object+
ChatColor values to their JAnsi equivalents,
+ so that messages logged to the console are formatted correctly.| Constructor and Description | +
|---|
BukkitColorMapper() |
+
Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/BukkitColorMarker.html b/apidocs/info/ronjenkins/slf4bukkit/BukkitColorMarker.html new file mode 100644 index 0000000..7e63d8e --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/BukkitColorMarker.html @@ -0,0 +1,769 @@ + + + + + + +public enum BukkitColorMarker +extends Enum<BukkitColorMarker> +implements org.slf4j.Marker+
ChatColors. These markers never contain any
+ references (other markers).| Enum Constant and Description | +
|---|
AQUA |
+
BLACK |
+
BLUE |
+
BOLD |
+
DARK_AQUA |
+
DARK_BLUE |
+
DARK_GRAY |
+
DARK_GREEN |
+
DARK_PURPLE |
+
DARK_RED |
+
GOLD |
+
GRAY |
+
GREEN |
+
ITALIC |
+
LIGHT_PURPLE |
+
MAGIC |
+
RED |
+
RESET |
+
STRIKETHROUGH |
+
UNDERLINE |
+
WHITE |
+
YELLOW |
+
ANY_MARKER, ANY_NON_NULL_MARKER| Modifier and Type | +Method and Description | +
|---|---|
void |
+add(org.slf4j.Marker reference)
+Not supported.
+ |
+
boolean |
+contains(org.slf4j.Marker other)
+These markers never have references.
+ |
+
boolean |
+contains(String name)
+These markers never have references.
+ |
+
String |
+getName()
+Returns the enum name of this marker.
+ |
+
org.bukkit.ChatColor |
+getValue()
+Returns the Bukkit color object associated with this marker.
+ |
+
boolean |
+hasChildren()
+These markers never have references.
+ |
+
boolean |
+hasReferences()
+These markers never have references.
+ |
+
Iterator<org.slf4j.Marker> |
+iterator()
+These markers never have references.
+ |
+
boolean |
+remove(org.slf4j.Marker reference)
+Not supported.
+ |
+
static BukkitColorMarker |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static BukkitColorMarker[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic static final BukkitColorMarker AQUA+
public static final BukkitColorMarker BLACK+
public static final BukkitColorMarker BLUE+
public static final BukkitColorMarker BOLD+
public static final BukkitColorMarker DARK_AQUA+
public static final BukkitColorMarker DARK_BLUE+
public static final BukkitColorMarker DARK_GRAY+
public static final BukkitColorMarker DARK_GREEN+
public static final BukkitColorMarker DARK_PURPLE+
public static final BukkitColorMarker DARK_RED+
public static final BukkitColorMarker GOLD+
public static final BukkitColorMarker GRAY+
public static final BukkitColorMarker GREEN+
public static final BukkitColorMarker ITALIC+
public static final BukkitColorMarker LIGHT_PURPLE+
public static final BukkitColorMarker MAGIC+
public static final BukkitColorMarker RED+
public static final BukkitColorMarker RESET+
public static final BukkitColorMarker STRIKETHROUGH+
public static final BukkitColorMarker UNDERLINE+
public static final BukkitColorMarker WHITE+
public static final BukkitColorMarker YELLOW+
public static BukkitColorMarker[] values()+
+for (BukkitColorMarker c : BukkitColorMarker.values()) + System.out.println(c); +
public static BukkitColorMarker valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void add(org.slf4j.Marker reference)+
add in interface org.slf4j.Markerreference - unused.UnsupportedOperationException - always.public boolean contains(org.slf4j.Marker other)+
contains in interface org.slf4j.Markerpublic boolean contains(String name)+
contains in interface org.slf4j.Markerpublic String getName()+
getName in interface org.slf4j.Markerpublic org.bukkit.ChatColor getValue()+
public boolean hasChildren()+
hasChildren in interface org.slf4j.Markerpublic boolean hasReferences()+
hasReferences in interface org.slf4j.Markerpublic Iterator<org.slf4j.Marker> iterator()+
iterator in interface org.slf4j.Markerpublic boolean remove(org.slf4j.Marker reference)+
remove in interface org.slf4j.Markerreference - unused.UnsupportedOperationException - always.Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMapper.html b/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMapper.html new file mode 100644 index 0000000..a695ded --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMapper.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMarker.html b/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMarker.html new file mode 100644 index 0000000..7a2b58e --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/class-use/BukkitColorMarker.html @@ -0,0 +1,166 @@ + + + + + + +| Package | +Description | +
|---|---|
| info.ronjenkins.slf4bukkit | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
static BukkitColorMarker |
+BukkitColorMarker.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static BukkitColorMarker[] |
+BukkitColorMarker.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/package-frame.html b/apidocs/info/ronjenkins/slf4bukkit/package-frame.html new file mode 100644 index 0000000..cf87988 --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +| Class | +Description | +
|---|---|
| BukkitColorMapper | +
+ Utility class that maps
+ChatColor values to their JAnsi equivalents,
+ so that messages logged to the console are formatted correctly. |
+
| Enum | +Description | +
|---|---|
| BukkitColorMarker | +
+ SLF4J markers that map to
+ChatColors. |
+
Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/package-tree.html b/apidocs/info/ronjenkins/slf4bukkit/package-tree.html new file mode 100644 index 0000000..827db1a --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/info/ronjenkins/slf4bukkit/package-use.html b/apidocs/info/ronjenkins/slf4bukkit/package-use.html new file mode 100644 index 0000000..4ccb8eb --- /dev/null +++ b/apidocs/info/ronjenkins/slf4bukkit/package-use.html @@ -0,0 +1,152 @@ + + + + + + +| Package | +Description | +
|---|---|
| info.ronjenkins.slf4bukkit | ++ |
| Class and Description | +
|---|
| BukkitColorMarker
+ SLF4J markers that map to
+ChatColors. |
+
Copyright © 2016. All rights reserved.
+ + diff --git a/apidocs/org/slf4j/impl/BukkitPluginLoggerAdapter.html b/apidocs/org/slf4j/impl/BukkitPluginLoggerAdapter.html index 2009344..1fe56c1 100644 --- a/apidocs/org/slf4j/impl/BukkitPluginLoggerAdapter.html +++ b/apidocs/org/slf4j/impl/BukkitPluginLoggerAdapter.html @@ -2,16 +2,16 @@ - + -public final class BukkitPluginLoggerAdapter
-extends org.slf4j.helpers.MarkerIgnoringBase
+extends Object
+implements org.slf4j.Logger
A merger of SLF4J's SimpleLogger and JDK14LoggerAdapter,
wired to log all messages to the enclosing Bukkit plugin. The plugin is
@@ -124,31 +121,36 @@ extends org.slf4j.helpers.MarkerIgnoringBase
slf4j.defaultLogLevel - Default log level for all SLF4Bukkit
loggers in this plugin. Must be one of "trace", "debug", "info", "warn", or
- "error". Defaults to "info".slf4j.log.a.b.c - Logging detail level for an
- SLF4Bukkit logger instance in this plugin named "a.b.c". Right-side value
- must be one of "trace", "debug", "info", "warn", or "error". When a logger
- named "a.b.c" is initialized, its level is assigned from this property. If
- unspecified, the level of the nearest parent logger will be used. If no
- parent logger level is set, then the value specified by
+ slf4j.log.<em>a.b.c</em> - Logging detail level for an SLF4Bukkit
+ logger instance in this plugin named "a.b.c". Right-side value must be one of
+ "trace", "debug", "info", "warn", or "error". When a logger named "a.b.c" is
+ initialized, its level is assigned from this property. If unspecified or
+ given any other value, the level of the nearest parent logger will be used.
+ If no parent logger level is set, then the value specified by
slf4j.defaultLogLevel for this plugin will be used.slf4j.showHeader -Set to true if you want to
- output the [SLF4J] header. Defaults to false.slf4j.showThreadName -Set to true if you want
- to output the current thread name. Defaults to false.slf4j.showLogName - Set to true if you want the
- logger instance name to be included in output messages. Defaults to
+ slf4j.showHeader -Set to true if you want to output the
+ [SLF4J] header. If unspecified or given any other value, defaults to
false.slf4j.showShortLogName - Set to true if you
- want the logger instance's short name to be included in output messages. The
- short name is equal to the full name with every dot-separated portion of the
- full name (except the last portion) truncated to its first character.
- Defaults to true.slf4j.showThreadName -Set to true if you want to output
+ the current thread name, wrapped in brackets. If unspecified or given any
+ other value, defaults to false.slf4j.showLogName - Set to true if you want the logger
+ instance name (wrapped in curly braces) to be included in output messages. If
+ unspecified or given any other value, defaults to false. If this
+ option is true, it overrides slf4j.showShortLogName.slf4j.showShortLogName - Set to true if you want the
+ logger instance's short name (wrapped in curly braces) to be included in
+ output messages. The short name is equal to the full name with every
+ dot-separated portion of the full name (except the last portion) truncated to
+ its first character. If unspecified or given any other value, defaults to
+ true. This option is ignored if slf4j.showLogName is
+ true.@@ -195,10 +197,16 @@ extends org.slf4j.helpers.MarkerIgnoringBase
With no configuration, the default output includes the logger short name and the message, followed by the line separator for the host. +
+ +
+ This logger supports only BukkitColorMarkers, which are used to
+ format the logged message and throwable. All other marker types are ignored.
+ The usage of markers does not affect whether or not a given logging level is
+ enabled.
| Modifier and Type | -Field and Description | -
|---|---|
protected String |
-name |
-
voiddebug(String msg)
-debug(org.slf4j.Marker marker,
+ String msg) voiddebug(org.slf4j.Marker marker,
+ String format,
+ Object... arguments) voiddebug(org.slf4j.Marker marker,
+ String format,
+ Object arg) voiddebug(org.slf4j.Marker marker,
+ String format,
+ Object arg1,
+ Object arg2) voiddebug(org.slf4j.Marker marker,
+ String msg,
+ Throwable t) voiddebug(String msg) voiddebug(String format,
- Object... argArray)
-voiddebug(String format,
- Object param1)
-voiddebug(String format,
- Object param1,
- Object param2)
-voiddebug(String msg,
- Throwable t)
-debug(String format,
+ Object arg1,
+ Object arg2) voiderror(String msg)
-debug(String msg,
+ Throwable t) voiderror(org.slf4j.Marker marker,
+ String msg) voiderror(org.slf4j.Marker marker,
+ String format,
+ Object... arguments) voiderror(org.slf4j.Marker marker,
+ String format,
+ Object arg) voiderror(org.slf4j.Marker marker,
+ String format,
+ Object arg1,
+ Object arg2) voiderror(org.slf4j.Marker marker,
+ String msg,
+ Throwable t) voiderror(String msg) voiderror(String format,
- Object... argArray)
-voiderror(String format,
- Object arg)
-voiderror(String format,
Object arg1,
- Object arg2)
-voiderror(String msg,
- Throwable t)
-StringgetName() voidinfo(org.slf4j.Marker marker,
+ String msg) voidinfo(String msg)
-info(org.slf4j.Marker marker,
+ String format,
+ Object... arguments) voidinfo(org.slf4j.Marker marker,
+ String format,
+ Object arg) voidinfo(org.slf4j.Marker marker,
+ String format,
+ Object arg1,
+ Object arg2) voidinfo(org.slf4j.Marker marker,
+ String msg,
+ Throwable t) voidinfo(String msg) voidinfo(String format,
- Object... argArray)
-voidinfo(String format,
- Object arg)
-voidinfo(String format,
Object arg1,
- Object arg2)
-voidinfo(String msg,
- Throwable t)
-static voidinit(boolean reinitialize)
-booleanisDebugEnabled()
-debug messages currently enabled?isDebugEnabled() booleanisErrorEnabled()
-error messages currently enabled?isDebugEnabled(org.slf4j.Marker marker) booleanisInfoEnabled()
-info messages currently enabled?isErrorEnabled() booleanisTraceEnabled()
-trace messages currently enabled?isErrorEnabled(org.slf4j.Marker marker) booleanisWarnEnabled()
-warn messages currently enabled?isInfoEnabled() protected ObjectreadResolve() booleanisInfoEnabled(org.slf4j.Marker marker) booleanisTraceEnabled() booleanisTraceEnabled(org.slf4j.Marker marker) booleanisWarnEnabled() booleanisWarnEnabled(org.slf4j.Marker marker) voidtrace(String msg)
-trace(org.slf4j.Marker marker,
+ String msg) voidtrace(org.slf4j.Marker marker,
+ String format,
+ Object... arguments) voidtrace(org.slf4j.Marker marker,
+ String format,
+ Object arg) voidtrace(org.slf4j.Marker marker,
+ String format,
+ Object arg1,
+ Object arg2) voidtrace(org.slf4j.Marker marker,
+ String msg,
+ Throwable t) voidtrace(String msg) voidtrace(String format,
- Object... argArray)
-voidtrace(String format,
- Object param1)
-voidtrace(String format,
- Object param1,
- Object param2)
-voidtrace(String msg,
- Throwable t)
-trace(String format,
+ Object arg1,
+ Object arg2) voidwarn(String msg)
-trace(String msg,
+ Throwable t) voidwarn(org.slf4j.Marker marker,
+ String msg) voidwarn(org.slf4j.Marker marker,
+ String format,
+ Object... arguments) voidwarn(org.slf4j.Marker marker,
+ String format,
+ Object arg) voidwarn(org.slf4j.Marker marker,
+ String format,
+ Object arg1,
+ Object arg2) voidwarn(org.slf4j.Marker marker,
+ String msg,
+ Throwable t) voidwarn(String msg) voidwarn(String format,
- Object... argArray)
-voidwarn(String format,
- Object arg)
-voidwarn(String format,
Object arg1,
- Object arg2)
-voidwarn(String msg,
- Throwable t)
-debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warnpublic void debug(org.slf4j.Marker marker, + String msg)+
debug in interface org.slf4j.Loggerpublic void debug(org.slf4j.Marker marker, + String format, + Object arg)+
debug in interface org.slf4j.Loggerpublic void debug(org.slf4j.Marker marker, + String format, + Object... arguments)+
debug in interface org.slf4j.Loggerpublic void debug(org.slf4j.Marker marker, + String format, + Object arg1, + Object arg2)+
debug in interface org.slf4j.Loggerpublic void debug(org.slf4j.Marker marker, + String msg, + Throwable t)+
debug in interface org.slf4j.Loggerpublic void debug(String msg)-
debug in interface org.slf4j.Loggerpublic void debug(String format, - Object param1)-
debug in interface org.slf4j.Loggerpublic void debug(String format, - Object... argArray)-
debug in interface org.slf4j.Loggerpublic void debug(String format, - Object param1, - Object param2)-
debug in interface org.slf4j.Loggerpublic void debug(String msg, Throwable t)-
debug in interface org.slf4j.Loggerpublic void error(org.slf4j.Marker marker, + String msg)+
error in interface org.slf4j.Loggerpublic void error(org.slf4j.Marker marker, + String format, + Object arg)+
error in interface org.slf4j.Loggerpublic void error(org.slf4j.Marker marker, + String format, + Object... arguments)+
error in interface org.slf4j.Loggerpublic void error(org.slf4j.Marker marker, + String format, + Object arg1, + Object arg2)+
error in interface org.slf4j.Loggerpublic void error(org.slf4j.Marker marker, + String msg, + Throwable t)+
error in interface org.slf4j.Loggerpublic void error(String msg)-
error in interface org.slf4j.Loggerpublic void error(String format, Object arg)-
error in interface org.slf4j.Loggerpublic void error(String format, - Object... argArray)-
error in interface org.slf4j.Loggerpublic void error(String format, Object arg1, Object arg2)-
error in interface org.slf4j.Loggerpublic void error(String msg, Throwable t)-
error in interface org.slf4j.Loggerpublic String getName()+
getName in interface org.slf4j.Loggerpublic void info(org.slf4j.Marker marker, + String msg)+
info in interface org.slf4j.Loggerpublic void info(org.slf4j.Marker marker, + String format, + Object arg)+
info in interface org.slf4j.Loggerpublic void info(org.slf4j.Marker marker, + String format, + Object... arguments)+
info in interface org.slf4j.Loggerpublic void info(org.slf4j.Marker marker, + String format, + Object arg1, + Object arg2)+
info in interface org.slf4j.Loggerpublic void info(org.slf4j.Marker marker, + String msg, + Throwable t)+
info in interface org.slf4j.Loggerpublic void info(String msg)-
info in interface org.slf4j.Loggerpublic void info(String format, Object arg)-
info in interface org.slf4j.Loggerpublic void info(String format, - Object... argArray)-
info in interface org.slf4j.Loggerpublic void info(String format, Object arg1, Object arg2)-
info in interface org.slf4j.Loggerpublic void info(String msg, Throwable t)-
info in interface org.slf4j.Loggerpublic boolean isDebugEnabled()-
debug messages currently enabled?isDebugEnabled in interface org.slf4j.Loggerpublic boolean isDebugEnabled(org.slf4j.Marker marker)+
isDebugEnabled in interface org.slf4j.Loggerpublic boolean isErrorEnabled()-
error messages currently enabled?isErrorEnabled in interface org.slf4j.Loggerpublic boolean isErrorEnabled(org.slf4j.Marker marker)+
isErrorEnabled in interface org.slf4j.Loggerpublic boolean isInfoEnabled()-
info messages currently enabled?isInfoEnabled in interface org.slf4j.Loggerpublic boolean isInfoEnabled(org.slf4j.Marker marker)+
isInfoEnabled in interface org.slf4j.Loggerpublic boolean isTraceEnabled()-
trace messages currently enabled?isTraceEnabled in interface org.slf4j.Loggerpublic boolean isTraceEnabled(org.slf4j.Marker marker)+
isTraceEnabled in interface org.slf4j.Loggerpublic boolean isWarnEnabled()-
warn messages currently enabled?isWarnEnabled in interface org.slf4j.Loggerpublic boolean isWarnEnabled(org.slf4j.Marker marker)+
isWarnEnabled in interface org.slf4j.Loggerpublic void trace(org.slf4j.Marker marker, + String msg)+
trace in interface org.slf4j.Loggerpublic void trace(org.slf4j.Marker marker, + String format, + Object arg)+
trace in interface org.slf4j.Loggerpublic void trace(org.slf4j.Marker marker, + String format, + Object... arguments)+
trace in interface org.slf4j.Loggerpublic void trace(org.slf4j.Marker marker, + String format, + Object arg1, + Object arg2)+
trace in interface org.slf4j.Loggerpublic void trace(org.slf4j.Marker marker, + String msg, + Throwable t)+
trace in interface org.slf4j.Loggerpublic void trace(String msg)-
trace in interface org.slf4j.Loggerpublic void trace(String format, - Object param1)-
trace in interface org.slf4j.Loggerpublic void trace(String format, - Object... argArray)-
trace in interface org.slf4j.Loggerpublic void trace(String format, - Object param1, - Object param2)-
trace in interface org.slf4j.Loggerpublic void trace(String msg, Throwable t)-
trace in interface org.slf4j.Loggerpublic void warn(org.slf4j.Marker marker, + String msg)+
warn in interface org.slf4j.Loggerpublic void warn(org.slf4j.Marker marker, + String format, + Object arg)+
warn in interface org.slf4j.Loggerpublic void warn(org.slf4j.Marker marker, + String format, + Object... arguments)+
warn in interface org.slf4j.Loggerpublic void warn(org.slf4j.Marker marker, + String format, + Object arg1, + Object arg2)+
warn in interface org.slf4j.Loggerpublic void warn(org.slf4j.Marker marker, + String msg, + Throwable t)+
warn in interface org.slf4j.Loggerpublic void warn(String msg)-
warn in interface org.slf4j.Loggerpublic void warn(String format, Object arg)-
warn in interface org.slf4j.Loggerpublic void warn(String format, - Object... argArray)-
warn in interface org.slf4j.Loggerpublic void warn(String format, Object arg1, Object arg2)-
warn in interface org.slf4j.Loggerpublic void warn(String msg, Throwable t)-
protected Object readResolve() - throws ObjectStreamException-
ObjectStreamExceptionwarn in interface org.slf4j.Logger| Package | +Description | +
|---|---|
| org.slf4j.impl | ++ |
| Package | +Description | +
|---|---|
| org.slf4j.impl | ++ |
| Package | +Description | +
|---|---|
| org.slf4j.impl | ++ |
| Package | +Description | +
|---|---|
| org.slf4j.impl | ++ |
+ + diff --git a/apidocs/serialized-form.html b/apidocs/overview-summary.html similarity index 64% rename from apidocs/serialized-form.html rename to apidocs/overview-summary.html index d320e74..6d2c17a 100644 --- a/apidocs/serialized-form.html +++ b/apidocs/overview-summary.html @@ -2,16 +2,16 @@ - + -
| Package | +Description | +
|---|---|
| info.ronjenkins.slf4bukkit | ++ |
| org.slf4j.impl | ++ |
The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.
@@ -358,13 +364,13 @@| SLF4Bukkit |
|---|
|
- Description: SLF4J binding that uses Bukkit's plugin logging system. +Description: SLF4Bukkit is an SLF4J binding that uses Bukkit's plugin logging system. URL: http://rjenkinsjr.github.io/slf4bukkit Project License: GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 |
Description: YAML 1.1 parser and emitter for Java
-Project License: Apache License Version 2.0
Project License: Apache License Version 2.0
| jansi |
|---|
|
+ Description: Jansi is a java library for generating and interpreting ANSI escape sequences. +URL: http://jansi.fusesource.org/jansi +Project License: The Apache Software License, Version 2.0 |
BSD style: Hamcrest Core
@@ -486,7 +501,7 @@LGPL version 2.1 or later: Ebean
Common Public License Version 1.0: JUnit
GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007: SLF4Bukkit
-The Apache Software License, Version 2.0: Commons Lang, Gson, Guava: Google Core Libraries for Java, JSON.simple
+The Apache Software License, Version 2.0: Commons Lang, Gson, Guava: Google Core Libraries for Java, JSON.simple, jansi
MIT License: SLF4J API Module
Common Development and Distribution License (CDDL) v1.0: Enterprise JavaBeans (EJB) 3.0
Apache License Version 2.0: SnakeYAML
<dependency> <groupId>info.ronjenkins</groupId> <artifactId>slf4bukkit</artifactId> - <version>0.1.1</version> + <version>0.1.2</version> </dependency>
SLF4Bukkit is an SLF4J binding that uses Bukkit’s plugin logging system.
+If you were linked here by documentation for a plugin that you’re using on your Bukkit/Spigot server, you can control the logging behavior of the plugin using its config.yml file.
Basic documentation of all available options is shown below. Your plugin likely has additional information regarding what portions of the plugin’s logging facilities are configurable.
@@ -207,30 +209,34 @@ slf4j: # the plugin as "info" severity, but you'll see the actual severity in the # log message. This is due to a Bukkit logging limitation. # - # If not specified, default is "info". + # If not specified or given an invalid value, defaults to "info". defaultLogLevel: info # Shows an "[SLF4J]" header for every message logged through SLF4Bukkit. # - # If not specified, default is "false". + # If not specified or given an invalid value, defaults to "false". showHeader: false - # Shows the name of each thread that is logging via SLF4Bukkit. You probably + # Shows the name of the logging thread, wrapped in brackets. You probably # don't want this information unless you're helping troubleshoot a plugin. # - # If not specified, default is "false". + # If not specified or given an invalid value, defaults to "false". showThreadName: false - # Shows the full logger name (e.g. "info.ronjenkins.bukkit.MyPlugin"). + # Shows the full logger name (e.g. "info.ronjenkins.bukkit.MyPlugin"), + # wrapped in curly braces. # - # If not specified, default is "false". + # If not specified or given an invalid value, defaults to "false". If true, + # this overrides "slf4j.showShortLogName". showLogName: false - # Shows the short logger name, which is the short Java package name format - # (e.g. a logger named "info.ronjenkins.bukkit.MyPlugin" would have a short - # name of "i.r.b.MyPlugin". + # Shows the short logger name, wrapped in curly braces. The short logger name + # is the short Java package name format (e.g. a logger named + # "info.ronjenkins.bukkit.MyPlugin" would have a short name of + # "i.r.b.MyPlugin"). # - # If not specified, default is "true". + # If not specified or given an invalid value, defaults to "true". If + # "slf4j.showLogName" is true, this option is ignored. showShortLogName: true # This section controls logging levels for individual loggers. @@ -243,6 +249,11 @@ slf4j: # The documentation for your plugin should elaborate on what logger names # are available. As a general rule, you won't need to specify levels for # specific loggers. + # + # For any logger, if the level specified here is invalid, or if the level is + # not specified at all, the level of the closest parent logger is used. If + # none of the logger's ancestors have a valid level defined, the + # value of "slf4j.defaultLogLevel" is used. info.ronjenkins.bukkit.MyPlugin: debug info.ronjenkins.SomeOtherLogger: warnThe source can be checked out anonymously from Git with this command (See http://git-scm.com/docs/git-clone):
-$ git clone --branch 0.1.1 git://github.com/rjenkinsjr/slf4bukkit.git
$ git clone --branch 0.1.2 git://github.com/rjenkinsjr/slf4bukkit.git
Only project developers can access the Git tree via this method (See http://git-scm.com/docs/git-clone).
-$ git clone --branch 0.1.1 git@github.com:rjenkinsjr/slf4bukkit.git
$ git clone --branch 0.1.2 git@github.com:rjenkinsjr/slf4bukkit.git
Refer to the documentation of the SCM used for more information about access behind a firewall.
Each tag is detailed below:
+Each tag is detailed below:
+Number of occurrences found in the code: 2
+| info.ronjenkins.slf4bukkit.BukkitColorMarker | +Line |
|---|---|
| Auto-generated method stub | +74 |
| Auto-generated method stub | +125 |
+1 /* +2 * Copyright (C) 2016 Ronald Jack Jenkins Jr. +3 * +4 * This program is free software: you can redistribute it and/or modify +5 * it under the terms of the GNU General Public License as published by +6 * the Free Software Foundation, either version 3 of the License, or +7 * (at your option) any later version. +8 * +9 * This program is distributed in the hope that it will be useful, +10 * but WITHOUT ANY WARRANTY; without even the implied warranty of +11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +12 * GNU General Public License for more details. +13 * +14 * You should have received a copy of the GNU General Public License +15 * along with this program. If not, see <http://www.gnu.org/licenses/>. +16 */ +17 package info.ronjenkins.slf4bukkit; +18 +19 import java.util.Map; +20 +21 import org.bukkit.ChatColor; +22 import org.fusesource.jansi.Ansi; +23 import org.fusesource.jansi.Ansi.Attribute; +24 +25 import com.google.common.collect.ImmutableMap; +26 +27 /** +28 * Utility class that maps {@link ChatColor} values to their JAnsi equivalents, +29 * so that messages logged to the console are formatted correctly. +30 * +31 * @author Ronald Jack Jenkins Jr. +32 */ +33 public final class BukkitColorMapper { +34 +35 // @formatter:off +36 private static final Map<ChatColor, String> MAP = ImmutableMap.<ChatColor, String>builder() +37 .put(ChatColor.BLACK, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.BLACK).boldOff().toString()) +38 .put(ChatColor.DARK_BLUE, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.BLUE).boldOff().toString()) +39 .put(ChatColor.DARK_GREEN, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.GREEN).boldOff().toString()) +40 .put(ChatColor.DARK_AQUA, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.CYAN).boldOff().toString()) +41 .put(ChatColor.DARK_RED, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.RED).boldOff().toString()) +42 .put(ChatColor.DARK_PURPLE, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.MAGENTA).boldOff().toString()) +43 .put(ChatColor.GOLD, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.YELLOW).boldOff().toString()) +44 .put(ChatColor.GRAY, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.WHITE).boldOff().toString()) +45 .put(ChatColor.DARK_GRAY, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.BLACK).bold().toString()) +46 .put(ChatColor.BLUE, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.BLUE).bold().toString()) +47 .put(ChatColor.GREEN, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.GREEN).bold().toString()) +48 .put(ChatColor.AQUA, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.CYAN).bold().toString()) +49 .put(ChatColor.RED, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.RED).bold().toString()) +50 .put(ChatColor.LIGHT_PURPLE, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.MAGENTA).bold().toString()) +51 .put(ChatColor.YELLOW, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.YELLOW).bold().toString()) +52 .put(ChatColor.WHITE, Ansi.ansi().a(Attribute.RESET).fg(Ansi.Color.WHITE).bold().toString()) +53 .put(ChatColor.MAGIC, Ansi.ansi().a(Attribute.BLINK_SLOW).toString()) +54 .put(ChatColor.BOLD, Ansi.ansi().a(Attribute.UNDERLINE_DOUBLE).toString()) +55 .put(ChatColor.STRIKETHROUGH, Ansi.ansi().a(Attribute.STRIKETHROUGH_ON).toString()) +56 .put(ChatColor.UNDERLINE, Ansi.ansi().a(Attribute.UNDERLINE).toString()) +57 .put(ChatColor.ITALIC, Ansi.ansi().a(Attribute.ITALIC).toString()) +58 .put(ChatColor.RESET, Ansi.ansi().a(Attribute.RESET).toString()) +59 .build(); +60 // @formatter:on +61 +62 /** +63 * Translates {@link ChatColor} directives to their JAnsi equivalents. +64 * +65 * @param input +66 * null is coerced to the empty string. +67 * @return never null. +68 */ +69 public static String map(final String input) { +70 if (input == null) { return ""; } +71 String output = input; +72 for (final Map.Entry<ChatColor, String> mapping : BukkitColorMapper.MAP.entrySet()) { +73 output = output.replace(mapping.getKey().toString(), mapping.getValue()); +74 } +75 return output; +76 } +77 +78 } ++
+1 /* +2 * Copyright (C) 2016 Ronald Jack Jenkins Jr. +3 * +4 * This program is free software: you can redistribute it and/or modify +5 * it under the terms of the GNU General Public License as published by +6 * the Free Software Foundation, either version 3 of the License, or +7 * (at your option) any later version. +8 * +9 * This program is distributed in the hope that it will be useful, +10 * but WITHOUT ANY WARRANTY; without even the implied warranty of +11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +12 * GNU General Public License for more details. +13 * +14 * You should have received a copy of the GNU General Public License +15 * along with this program. If not, see <http://www.gnu.org/licenses/>. +16 */ +17 package info.ronjenkins.slf4bukkit; +18 +19 import java.util.Collections; +20 import java.util.Iterator; +21 +22 import org.bukkit.ChatColor; +23 import org.slf4j.Marker; +24 +25 /** +26 * SLF4J markers that map to {@link ChatColor}s. These markers never contain any +27 * references (other markers). +28 * +29 * @author Ronald Jack Jenkins Jr. +30 */ +31 public enum BukkitColorMarker implements Marker { +32 +33 AQUA(ChatColor.AQUA), BLACK(ChatColor.BLACK), BLUE(ChatColor.BLUE), +34 BOLD(ChatColor.BOLD), DARK_AQUA(ChatColor.DARK_AQUA), +35 DARK_BLUE(ChatColor.DARK_BLUE), DARK_GRAY(ChatColor.DARK_GRAY), +36 DARK_GREEN(ChatColor.DARK_GREEN), DARK_PURPLE(ChatColor.DARK_PURPLE), +37 DARK_RED(ChatColor.DARK_RED), GOLD(ChatColor.GOLD), GRAY(ChatColor.GRAY), +38 GREEN(ChatColor.GREEN), ITALIC(ChatColor.ITALIC), +39 LIGHT_PURPLE(ChatColor.LIGHT_PURPLE), MAGIC(ChatColor.MAGIC), +40 RED(ChatColor.RED), RESET(ChatColor.RESET), +41 STRIKETHROUGH(ChatColor.STRIKETHROUGH), UNDERLINE(ChatColor.UNDERLINE), +42 WHITE(ChatColor.WHITE), YELLOW(ChatColor.YELLOW); +43 +44 private final ChatColor value; +45 +46 private BukkitColorMarker(final ChatColor value) { +47 this.value = value; +48 } +49 +50 /** +51 * Not supported. +52 * +53 * @param reference +54 * unused. +55 * @throws UnsupportedOperationException +56 * always. +57 */ +58 @Override +59 public void add(final Marker reference) { +60 throw new UnsupportedOperationException(); +61 } +62 +63 /* +64 * Marker API +65 */ +66 +67 /** +68 * These markers never have references. +69 * +70 * @return false. +71 */ +72 @Override +73 public boolean contains(final Marker other) { +74 // TODO Auto-generated method stub +75 return false; +76 } +77 +78 /** +79 * These markers never have references. +80 * +81 * @return false. +82 */ +83 @Override +84 public boolean contains(final String name) { +85 return false; +86 } +87 +88 /** +89 * Returns the enum name of this marker. +90 * +91 * @return never null. +92 */ +93 @Override +94 public String getName() { +95 return this.name(); +96 } +97 +98 /** +99 * Returns the Bukkit color object associated with this marker. +100 * +101 * @return never null. +102 */ +103 public ChatColor getValue() { +104 return this.value; +105 } +106 +107 /** +108 * These markers never have references. +109 * +110 * @return false. +111 */ +112 @Override +113 @SuppressWarnings({ "all", "deprecation" }) +114 public boolean hasChildren() { +115 return false; +116 } +117 +118 /** +119 * These markers never have references. +120 * +121 * @return false. +122 */ +123 @Override +124 public boolean hasReferences() { +125 // TODO Auto-generated method stub +126 return false; +127 } +128 +129 /** +130 * These markers never have references. +131 * +132 * @return false. +133 */ +134 @Override +135 public Iterator<Marker> iterator() { +136 return Collections.emptyIterator(); +137 } +138 +139 /** +140 * Not supported. +141 * +142 * @param reference +143 * unused. +144 * @throws UnsupportedOperationException +145 * always. +146 */ +147 @Override +148 public boolean remove(final Marker reference) { +149 throw new UnsupportedOperationException(); +150 } +151 +152 } ++
| Class Summary | +
|---|
| + BukkitColorMapper + | +
| + BukkitColorMarker + | +
| + info.ronjenkins.slf4bukkit + | +
| org.slf4j.impl |