Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Full example class can be found here: TracingSample.java

Simple Tracing

One big difference to other tracing solutions is that JEAF's API does not require something like a logger. Instead the logger is taken from the context. This means that the current service / component from which the tracing is called is used to identify the needed "Logger". Idea behind that is that enterprise applications are usually separated into multiple services. When it comes to tracing then it's sufficient to configure tracing on the level of services / components. Through this approach usage of the API is simpler and less error-prone. If tracing is called not from within a service then the logger of the application will be used.

...