Use static method to log messages (see #2)