Added multi-level logging utility