Do not crash the caller when Logger is not available

Instead, return :ok | {:error, :not_available} and leave it up
to the caller to decide.