MovingBlocks / DestinationSol

Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Apache License 2.0
330 stars 122 forks source link

Improve logging setup - Logback/SLF4J instead of log4j? #416

Open Cervator opened 5 years ago

Cervator commented 5 years ago

Currently with Terasology we use Logback/SLF4J for logging and control it and any "bridged" logging frameworks from a single logback config file. I noticed while reviewing #415 that we're still doing log4j things in DS. For consistency's sake (and the added power of the newer frameworks) we should probably look into switching over.

See Terasology's setup for further details and https://logback.qos.ch/

Extra consideration here: Does Android require any additional considerations?

Avalancs commented 5 years ago

Not sure what extras they provide, but there are 2 repos I found: sl4j-android: https://github.com/nomis/slf4j-android logback-android: https://github.com/tony19/logback-android

The first repo is just the SL4J abstraction: https://www.slf4j.org/android/ The second repo is sl4j + the modified logback library.

I'll try out the second one, make a PR and ask someone to test it on Android.