Log write method bug solved...