Logger class method write() changed to static method.