Setting events for each new window
log levels