Class LoggerController
- java.lang.Object
-
- org.craftercms.studio.controller.rest.v2.LoggerController
-
@RestController @RequestMapping("/api/2/loggers") public class LoggerController extends Object
REST controller that provides access to Logger related operations.- Since:
- 4.0.2
- Author:
- jmendeza
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOGGER_LEVEL
static String
ROOT_URL
-
Constructor Summary
Constructors Constructor Description LoggerController(LoggerService logService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultList<LoggerConfig>
getLoggers()
@Valid ResultOne<LoggerConfig>
setLoggerLevel(@Valid LoggerConfigRequest loggerConfig)
-
-
-
Field Detail
-
ROOT_URL
public static final String ROOT_URL
- See Also:
- Constant Field Values
-
LOGGER_LEVEL
public static final String LOGGER_LEVEL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoggerController
@ConstructorProperties("logService") public LoggerController(LoggerService logService)
-
-
Method Detail
-
getLoggers
@GetMapping public ResultList<LoggerConfig> getLoggers() throws ServiceLayerException
- Throws:
ServiceLayerException
-
setLoggerLevel
@Valid @PostMapping("/logger_level") public @Valid ResultOne<LoggerConfig> setLoggerLevel(@Valid @RequestBody @Valid LoggerConfigRequest loggerConfig) throws ServiceLayerException
- Throws:
ServiceLayerException
-
-