Skip to content

Commit

Permalink
logging updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anneferger committed Jun 24, 2024
1 parent 6768078 commit e330d1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions log4j.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
pattern="%%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n" />
</Console>
<RollingFile name="rollingFile" fileName="${LOG_DIR}/debugging.out" filePattern="${LOG_DIR}/debugging.%d{dd-MMM}.out.gz" ignoreExceptions="false">
<PatternLayout>
<Pattern>%m%n</Pattern>
</PatternLayout>
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n"/>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
<dependency>
<groupId>pl.psnc.dl.ege</groupId>
<artifactId>ege-framework</artifactId>
<version>0.5.5</version>
<version>0.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/pl/psnc/dl/ege/webapp/servlet/InfoServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
@Tag(name = "ege-webservice", description = "Conversion, Validation and Customization")
})
public class InfoServlet extends HttpServlet {
private static final Logger LOGGER = LogManager.getLogger(InfoServlet.class);
Info info = new Info();
@Override
@GET
Expand All @@ -42,8 +41,7 @@ public class InfoServlet extends HttpServlet {
})
public void doGet(@Parameter(hidden = true) HttpServletRequest request, @Parameter(hidden = true) HttpServletResponse response)
throws IOException, ServletException {
LOGGER.debug("REQUEST: " + request.getRequestURL() + " " + request.getContextPath() + " " + request.toString());
info.doGetHelper(request, response, this);
info.doGetHelper(request, response, this);
}

}

0 comments on commit e330d1f

Please sign in to comment.