Skip to content

Commit

Permalink
Configure JUL logging to default to SLF4J
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Apr 14, 2024
1 parent 34b6e7b commit c5e76b5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package com.guicedee.client.implementations;

import com.guicedee.guicedinjection.interfaces.IGuicePreStartup;
import org.slf4j.bridge.SLF4JBridgeHandler;

import java.util.logging.LogManager;

public class GuicedEEClientStartup implements IGuicePreStartup<GuicedEEClientStartup>
{
@Override
public void onStartup()
{
System.setProperty("org.jboss.logging.provider", "slf4j");
LogManager.getLogManager()
.getLogger("")
.addHandler(new SLF4JBridgeHandler());
}
}

0 comments on commit c5e76b5

Please sign in to comment.