we want to implement SLF4J for logging in our camunda-project.
We are using eclipse kepler and maven(m2eclipse plugin).
We resolved the three error-code-lines
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details
And now we want start logging while our project is running at Camunda Tasklist.
Our Settings for SLF4J in the pom-file:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.7</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.7</version>
</dependency>
And in the java-class for testing it:
private static Logger log = Logger.getLogger(OrderBusinessLogic.class.getName());
log.warn("Warning");
log.info("Info");
log.error("Error");
The problem is that we don't get any log.
Neither on the consele, maven console nor command-line interface.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detailsLogger log = LoggerFactory.getLogger(OrderBusinessLogic.class);
log.warn("Warning");
log.info("Info");
log.error("Error");
This one didn't work also.
[main] INFO org.camunda.bpm.unittest.SimpleTestCase - Starting test case
[main] DEBUG org.camunda.bpm.unittest.SimpleTestCase - Got runtime- and taskService
[main] INFO org.camunda.bpm.unittest.SimpleTestCase - Process started
[main] DEBUG org.camunda.bpm.unittest.SimpleTestCase - Found task Task[7]
[main] INFO org.camunda.bpm.unittest.SimpleTestCase - Task completed
[main] INFO org.camunda.bpm.unittest.SimpleTestCase - Process ended