com.github.markusbernhardt.xmldoclet.LoggingLevelEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-doclet Show documentation
Show all versions of xml-doclet Show documentation
Doclet for writing XML file (instead of JavaDoc HTML)
package com.github.markusbernhardt.xmldoclet;
import org.slf4j.Logger;
/**
* Enumeration implementing the LoggingLevel interface and sending all messages to a SLF4j logger.
*
* @author markus
*/
public enum LoggingLevelEnum implements LoggingLevel {
/**
* Log level: INFO
*/
INFO {
@Override
public void log(Logger log, String message) {
log.info(message);
}
},
/**
* Log level: WARN
*/
WARN {
@Override
public void log(Logger log, String message) {
log.warn(message);
}
},
/**
* Log level: ERROR
*/
ERROR {
@Override
public void log(Logger log, String message) {
log.error(message);
}
};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy