More advanced logging system.