simple logging framework with an optional android adapter