Refactoring tlnb for graceful and robust app server logging.