Logging events in console