1 /*
2 * Copyright 2018-2024 Medical Information Systems Research Group (https://medical.zcu.cz),
3 * Department of Computer Science and Engineering, University of West Bohemia.
4 * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5 *
6 * Author Petr Vcelak (vcelak@kiv.zcu.cz).
7 *
8 * This file is part of MRE SPARQL QueryBuilder project.
9 *
10 * MRE SPARQL QueryBuilder is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License.
13 *
14 * MRE SPARQL QueryBuilder is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with MRE SPARQL QueryBuilder. If not, see <http://www.gnu.org/licenses/>.
21 */
22 package cz.zcu.mre.qbuilder.controller;
23
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26 import org.springframework.stereotype.Controller;
27 import org.springframework.web.bind.annotation.RequestMapping;
28
29 /**
30 * The QBuilder Controller.
31 *
32 * @author Petr Vcelak (vcelak@kiv.zcu.cz)
33 */
34 @Controller
35 public class LoggingController {
36
37 Logger logger = LoggerFactory.getLogger(LoggingController.class);
38
39 @RequestMapping("/")
40 public String index() {
41 logger.trace("A TRACE Message");
42 logger.debug("A DEBUG Message");
43 logger.info("An INFO Message");
44 logger.warn("A WARN Message");
45 logger.error("An ERROR Message");
46
47 return "Howdy! Check out the Logs to see the output...";
48 }
49
50 }