Added the warning logging function and removed fatal as duplicate of the critical one.