How to Log with Log Bridge and log4j

1) Create the file:

import org.grlea.logBridge.LogBridge;
import org.grlea.logBridge.LogBridgeManager;

public final class LogBridgeSample {

  public static void main(final String[] args) {
    final LogBridge bridge = LogBridgeManager.createLogBridge(LogBridgeSample.class);"Hello World");


2) Create the file:

org.grlea.logBridge.LogBridgeFactory=org.grlea.logBridge.impl.Log4JLogBridgeFactory # default is org.grlea.logBridge.impl.NullLogBridgeFactory

3) Create the file:

log4j.logger.LogBridgeSample=INFO, A1

4) Compile the file.

5) Launch the LogBridgeSample class.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s