I tried the following

```
def index(conn, _params) do
    Logger.debug conn
     ......

```

But I get

```
protocol String.Chars not implemented for %Plug.Conn

```

I even tried Apex but that didn't worked either.