@ Route ( method = HttpMethod . GET , uri = "/monitor/logs/loggers" ) public Result loggers ( ) { LoggerContext context = ( LoggerContext ) LoggerFactory . getILoggerFactory ( ) ; List < LoggerModel > loggers = new ArrayList <> ( ) ; for ( Logger logger : context . getLoggerList ( ) ) { loggers . add ( new LoggerModel ( logger ) ) ; } return ok ( loggers ) . json ( ) ; }
Gets a json form of the list of logger .