Skip to content

Commit

Permalink
WebappClassLoader - using System.Logger
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Jan 15, 2023
1 parent 98abd41 commit 42ed92c
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 269 deletions.
Expand Up @@ -36,7 +36,7 @@ public class LogFacade {
@LoggerInfo(subsystem="WEB", description="WEB Util Logger", publish=true)
private static final String WEB_UTIL_LOGGER = "jakarta.enterprise.web.util";

public static final Logger LOGGER =
private static final Logger LOGGER =
Logger.getLogger(WEB_UTIL_LOGGER, SHARED_LOGMESSAGE_RESOURCE);

private LogFacade() {}
Expand All @@ -45,6 +45,11 @@ public static Logger getLogger() {
return LOGGER;
}

public static System.Logger getSysLogger(Class<?> clazz) {
return System.getLogger(clazz.getName(), LOGGER.getResourceBundle());
}


private static final String prefix = "AS-WEB-UTIL-";

@LogMessageInfo(
Expand Down

0 comments on commit 42ed92c

Please sign in to comment.