making logger methods to static
changing logger to singleton