Using logger to report warning messages