Fixed bugs in logger mechanism. Updated logger for application itself.