Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Logging

jim618 edited this page Sep 20, 2011 · 4 revisions

Atm, logging seems a bit slapped onto MultiBit, mainly

  • Using sl4j-simple as a back-end for BitcoinJ logs
  • Could redirect the logging to log4j via slf4j log4j-12 binding
  • Using log4j as an API and backend for code in MultiBit
  • Could separate between the API and back-end

True - it is slapped together. I put in log4j into MultiBit mainly because I was familiar with it.

What is the long term goal for logging?

  • Seperate between the API and back-end
  • Get all logging into the same back-end << This would be the goal. Just have one logging system.
  • Do logging instead of Exception.printStacktrace() and System.out << Definitely the goal.
  • Log4j is no longer being maintained, must swap to http://logback.qos.ch/ as backend (for sl4j users it is just to swap one jar in the classpath + changing the config) << Agreed.
Clone this wiki locally