Added a type Callback[String] = Function1[String, Unit] to be used as the logMethod