import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.Appender;
+import com.wordnik.swagger.annotations.Api;
+import com.wordnik.swagger.annotations.ApiOperation;
+
@Path("/logging")
+@Api(value="/logging",description="logging")
public class MsoLoggingServlet {
private static final String DEBUGLOG = "asyncEELFDebug";
@GET
@Path("/setLevel/{logContext}/{level}")
@Produces("text/plain")
+ @ApiOperation(value="message print",response=Response.class)
public Response setLogLevel (@PathParam("logContext") String logContext, @PathParam("level") String level) {
logger.info (MessageEnum.LOGGER_SETUP, "", "");
@Path("/loggers")
@Produces("text/plain")
@SuppressWarnings("rawtypes")
+ @ApiOperation(value="message print",response=Response.class)
public Response getLoggers () {
StringBuilder response = new StringBuilder ();
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
@GET
@Path("/debug")
@Produces("text/plain")
+ @ApiOperation(value="message print",response=Response.class)
@SuppressWarnings("rawtypes")
/*
* Debug log is used as a general log to store all the logs events, including events generated by MSO code or by