ADD code implementing all log methods