suerprisePlus
2024-09-23 e7c3276f2f5091fe8626af61ba5d7b41b2a1f2df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.yb.controller.log;
 
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
 
public class LoggerController {
    private static final Logger logger = LoggerFactory.getLogger(LoggerController.class);
 
    @RequestMapping("/getLogger")
    public String getLogger() {
        logger.trace("log trace");
        logger.debug("log debug");
        logger.info("log info");
        logger.warn("log warn");
        logger.error("log error");
        return "Agent Log";
    }
}