How to Log something in Controller when Phoenix Server is running?
Okay, turns out it’s pretty straight forward. You need to require the Logger elixir module in your controller and call one of it’s methods to log your text. defmodule PhoenixApp.TopicController do require Logger def index(conn, params) do Logger.info “Logging this text!” Logger.debug “Var value: #{inspect(params)}” # … end end Supported levels are: :debug – for … Read more