I can use the elixir logger for inspecting strings
> str = "string"
> Logger.info "Here is a #{str}"
[info] Here is a string
But when I log a list, it doesn't look pretty
> list = [1,2,3,4,5]
> Logger.info "Here is a list: #{list}"
[info] Here is a list: ^A^B^C^D^E^F
When I log keyword list, it errors
> kwl = [a: "apple", b: "banana"]
> Logger.info "Here is a keyword list: #{kwl}"
** (ArgumentError) argument error
(stdlib) :unicode.characters_to_binary([a: "apple", b: "banana"])
(elixir) lib/list.ex:555: List.to_string/1
How do you logger lists, tuples and data types other than strings in Elixir?