Grouped loggers by modules (imap, net, service, main) and define
additional macros for logging.