Skip to content

Use example

taotao edited this page Feb 21, 2019 · 1 revision

use exception option

Logger.error("some error", exception: Exception)

use stacktrace option

Logger.error("some error", stacktrace: System.stacktrace())

use fingerprint for aggregation

Logger.error("some error", fingerprint: ["error_category_1", "error_category_2"])

use extra for error parameters

Logger.error("some error", extra: %{params: %{}, level: "", error: "detailed_error_information"})