Class that gives logs only when debug flag is active.