Log to stderr if log to file fails
Merge branch 'logger' into timer-based