Log4J

Hi;

I would like to provide a method via a class to an external component (implement in C langage) to use log4j as logguer.

For example :

public class log {

...

public trace(String logs)

...

}

The component calls the trace method to write its logs and the trace must used log4J for that ?

Its possible or not ? If is possible please give me a example.

regards;

[428 byte] By [yanis97a] at [2007-10-3 10:19:07]
# 1
Just to be sure: you know log4c and log4c++ also exist right?If you absolutely need to route this through Java, you will need to look at JNI. Using JNI you can call C from Java and vice-versa.
Herko_ter_Horsta at 2007-7-15 5:40:16 > top of Java-index,Java Essentials,Java Programming...