logger: correctly handling error arguments
added lib/directive to show dates in relative format