# \#logging

**URL:** https://forum.elixirforum.com/tag/logging/34.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [IMDS - small library for fetching instance metadata in cloud agnostic way](https://forum.elixirforum.com/t/imds-small-library-for-fetching-instance-metadata-in-cloud-agnostic-way/77159)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 1\
**Last updated:** [October 25, 2026, 6:55pm UTC](https://forum.elixirforum.com/t/imds-small-library-for-fetching-instance-metadata-in-cloud-agnostic-way/77159 "2026-10-25T18:55:55Z")

</div>

I have created small library to help with observing some of my services. In many cases I just want to fetch instance metadata (provider, instance ID) and put that in the global logger metadata, so then you can find which…

---

## [Why is Logger's default level :debug?](https://forum.elixirforum.com/t/why-is-loggers-default-level-debug/76651)

<div class="topic-metadata">

**Author:** [@asweet-confluent](https://forum.elixirforum.com/u/asweet-confluent)\
**Replies:** 10\
**Last updated:** [September 14, 2026, 5:03pm UTC](https://forum.elixirforum.com/t/why-is-loggers-default-level-debug/76651 "2026-09-14T17:03:40Z")

</div>

I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is present. In Logger.App, the default ultimately comes from this line: Application.get…

---

## [What do we do with logging in libraries?](https://forum.elixirforum.com/t/what-do-we-do-with-logging-in-libraries/75914)

<div class="topic-metadata">

**Author:** [@martosaur](https://forum.elixirforum.com/u/martosaur)\
**Replies:** 14\
**Last updated:** [July 7, 2026, 4:23pm UTC](https://forum.elixirforum.com/t/what-do-we-do-with-logging-in-libraries/75914 "2026-07-07T16:23:03Z")

</div>

Seriously, what do we do with logs in Elixir? There is seemingly no way to make them good both in dev and prod. This is especially noticeable in libraries, which often choose to simply not log. In my new post I propose…

---

## [Timeless Phoenix - Observability Made Simple for Elixir](https://forum.elixirforum.com/t/timeless-phoenix-observability-made-simple-for-elixir/74840)

<div class="topic-metadata">

**Author:** [@awksedgreep1](https://forum.elixirforum.com/u/awksedgreep1)\
**Replies:** 1\
**Last updated:** [March 31, 2026, 5:47pm UTC](https://forum.elixirforum.com/t/timeless-phoenix-observability-made-simple-for-elixir/74840 "2026-03-31T17:47:35Z")

</div>

\*\*Timeless Observability for Phoenix Timeless is a suite of databases and dashboards that can be embedded in your Elixir Phoenix app to provide observability. A single igniter command line and it installs the necessary…

---

## [Silencing debug logs for a single aggregate or command/event in Commanded?](https://forum.elixirforum.com/t/silencing-debug-logs-for-a-single-aggregate-or-command-event-in-commanded/73245)

<div class="topic-metadata">

**Author:** [@mvrkljan](https://forum.elixirforum.com/u/mvrkljan)\
**Replies:** 0\
**Last updated:** [November 8, 2025, 5:07pm UTC](https://forum.elixirforum.com/t/silencing-debug-logs-for-a-single-aggregate-or-command-event-in-commanded/73245 "2025-11-08T17:07:49Z")

</div>

Hello! As the title says; is it possible to keep logger at debug level, but silence or filter out debug logs coming from Commanded for a specific (noisy) aggregate, or better yet, a command? I’ve tried filtering with lo…

---

## [Failing to remove info level logs from plug and phoenix](https://forum.elixirforum.com/t/failing-to-remove-info-level-logs-from-plug-and-phoenix/23727)

<div class="topic-metadata">

**Author:** [@idi527](https://forum.elixirforum.com/u/idi527)\
**Replies:** 3\
**Last updated:** [October 23, 2025, 2:36pm UTC](https://forum.elixirforum.com/t/failing-to-remove-info-level-logs-from-plug-and-phoenix/23727 "2025-10-23T14:36:40Z")

</div>

:waving\_hand: I’ve added config :logger, compile\_time\_purge\_matching: \[ \[application: :phoenix, level\_lower\_than: :warn\], \[application: :plug, level\_lower\_than: :warn\] \] to my config (dev.exs) and recompil…

---

## [Example of using Logger.metadata](https://forum.elixirforum.com/t/example-of-using-logger-metadata/4786)

<div class="topic-metadata">

**Author:** [@wfgilman](https://forum.elixirforum.com/u/wfgilman)\
**Replies:** 8\
**Last updated:** [October 19, 2025, 3:02pm UTC](https://forum.elixirforum.com/t/example-of-using-logger-metadata/4786 "2025-10-19T15:02:05Z")

</div>

Can someone provide an example of how you would attach metadata to a process using metatdata/1? If I have a GenServer say that accepts messages with a user\_id. Where would I add the user\_id to the metadata so that it’s p…

---

## [Separating app-level debug logging from Ecto debug logging](https://forum.elixirforum.com/t/separating-app-level-debug-logging-from-ecto-debug-logging/71855)

<div class="topic-metadata">

**Author:** [@dogweather](https://forum.elixirforum.com/u/dogweather)\
**Replies:** 3\
**Last updated:** [July 29, 2025, 12:54am UTC](https://forum.elixirforum.com/t/separating-app-level-debug-logging-from-ecto-debug-logging/71855 "2025-07-29T00:54:15Z")

</div>

I have some issues with logging in Elixir / Phoenix / LiveView. In production, I want to see simple one-line logs for web requests and “important” worker processes that get kicked off. In development, I usually want to…

---

## [Propose for magic link remember me](https://forum.elixirforum.com/t/propose-for-magic-link-remember-me/71511)

<div class="topic-metadata">

**Author:** [@boriscy](https://forum.elixirforum.com/u/boriscy)\
**Replies:** 2\
**Last updated:** [July 2, 2025, 4:00pm UTC](https://forum.elixirforum.com/t/propose-for-magic-link-remember-me/71511 "2025-07-02T16:00:10Z")

</div>

Hello I really love phoenix 1.8 and I think the new magic link generator is great but I find the remember me function unintuitive. I have found this simple solution that copies the style of login/pass. I will change…

---

## [LogHog - PostHog Error Tracking for Elixir](https://forum.elixirforum.com/t/loghog-posthog-error-tracking-for-elixir/71265)

<div class="topic-metadata">

**Author:** [@martosaur](https://forum.elixirforum.com/u/martosaur)\
**Replies:** 0\
**Last updated:** [June 12, 2025, 10:01pm UTC](https://forum.elixirforum.com/t/loghog-posthog-error-tracking-for-elixir/71265 "2025-06-12T22:01:40Z")

</div>

PostHog introduced their Error Tracking solution a couple of months ago. Right now they only support Python and JS, but the team was kind enough to add support for language-agnostic errors, which LogHog uses to bring err…

---

## [LoggerHandlerKit - your guide to Elixir logger handlers](https://forum.elixirforum.com/t/loggerhandlerkit-your-guide-to-elixir-logger-handlers/70690)

<div class="topic-metadata">

**Author:** [@martosaur](https://forum.elixirforum.com/u/martosaur)\
**Replies:** 5\
**Last updated:** [June 2, 2025, 11:06pm UTC](https://forum.elixirforum.com/t/loggerhandlerkit-your-guide-to-elixir-logger-handlers/70690 "2025-06-02T23:06:04Z")

</div>

I’m excited to announce LoggerHandlerKit – an educational package for developers who want to write their own logger handler. It provides: An example test suite for the default Elixir logger A collection of test helpers…

---

## [Log Level on "info" despite configured otherwise](https://forum.elixirforum.com/t/log-level-on-info-despite-configured-otherwise/27922)

<div class="topic-metadata">

**Author:** [@PatrickSachs](https://forum.elixirforum.com/u/PatrickSachs)\
**Replies:** 15\
**Last updated:** [June 2, 2025, 3:01pm UTC](https://forum.elixirforum.com/t/log-level-on-info-despite-configured-otherwise/27922 "2025-06-02T15:01:29Z")

</div>

Hello there! I am currently facing an issue with the logger. At some point it started logging at info level only despite being configured to log at debug level. The interesting thing is that it used to work fine before…

---

## [Logging from IEx to application standard output](https://forum.elixirforum.com/t/logging-from-iex-to-application-standard-output/65232)

<div class="topic-metadata">

**Author:** [@spacebat](https://forum.elixirforum.com/u/spacebat)\
**Replies:** 2\
**Last updated:** [May 29, 2025, 10:28am UTC](https://forum.elixirforum.com/t/logging-from-iex-to-application-standard-output/65232 "2025-05-29T10:28:59Z")

</div>

I have an Elixir application running in a kubernetes pod, it uses LoggerJSON to send JSON formatted logs to standard output - that works fine. When I use kubectl exec to access that pod and run bin/my\_app remote the IEx…

---

## [Should Logger.Translator persist original report to metadata?](https://forum.elixirforum.com/t/should-logger-translator-persist-original-report-to-metadata/70095)

<div class="topic-metadata">

**Author:** [@martosaur](https://forum.elixirforum.com/u/martosaur)\
**Replies:** 1\
**Last updated:** [May 8, 2025, 6:57pm UTC](https://forum.elixirforum.com/t/should-logger-translator-persist-original-report-to-metadata/70095 "2025-05-08T18:57:29Z")

</div>

TL;DR Logger.Translator acts as a global filter and swallows structure of some OTP reports, which some logger handlers could benefit from. Would it be a good idea to save a copy of raw report in the metadata? Context Tw…

---

## [Logging in different "groups"/outputs](https://forum.elixirforum.com/t/logging-in-different-groups-outputs/70584)

<div class="topic-metadata">

**Author:** [@dmitriid](https://forum.elixirforum.com/u/dmitriid)\
**Replies:** 0\
**Last updated:** [April 22, 2025, 1:04pm UTC](https://forum.elixirforum.com/t/logging-in-different-groups-outputs/70584 "2025-04-22T13:04:09Z")

</div>

This is a weird ask. but sometimes I want it :slight\_smile: Especially when developing a Phoneix app, you’ll have a bunch of logs spamming your console: response/request, database, your own logging etc. On top of that y…

---

## [Disable logging on specific route?](https://forum.elixirforum.com/t/disable-logging-on-specific-route/622)

<div class="topic-metadata">

**Author:** [@johnhamelink](https://forum.elixirforum.com/u/johnhamelink)\
**Replies:** 14\
**Last updated:** [April 9, 2025, 6:00pm UTC](https://forum.elixirforum.com/t/disable-logging-on-specific-route/622 "2025-04-09T18:00:37Z")

</div>

Hey there, I have an endpoint that’s used to check to see if an instance is up and available (for use with a node balancer). The node balancer will hit this endpoint once a second or so. Obviously that produces a lot of…

---

## [Lumberjack - log viewer for Elixir and Erlang](https://forum.elixirforum.com/t/lumberjack-log-viewer-for-elixir-and-erlang/30288)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 9\
**Last updated:** [April 6, 2025, 7:29am UTC](https://forum.elixirforum.com/t/lumberjack-log-viewer-for-elixir-and-erlang/30288 "2025-04-06T07:29:51Z")

</div>

I have created simple log viewer for your applications. It is not yet published on Hex as it still needs a little bit polishing and documentation, but I thought that it can be interesting for some of you. Example of web…

---

## [DiscoLog - Use Discord as a logging service and error tracking solution](https://forum.elixirforum.com/t/discolog-use-discord-as-a-logging-service-and-error-tracking-solution/65730)

<div class="topic-metadata">

**Author:** [@MRdotB](https://forum.elixirforum.com/u/MRdotB)\
**Replies:** 16\
**Last updated:** [February 6, 2025, 10:12am UTC](https://forum.elixirforum.com/t/discolog-use-discord-as-a-logging-service-and-error-tracking-solution/65730 "2025-02-06T10:12:07Z")

</div>

Hello, I’m excited to introduce DiscoLog, a logging service and error tracking solution for Elixir that uses a Discord server as its backend. Setup DiscoLog is easy to set up with a mix task that creates three chann…

---

## [Does Logger have a hidden cap for message size?](https://forum.elixirforum.com/t/does-logger-have-a-hidden-cap-for-message-size/32369)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 14\
**Last updated:** [January 31, 2025, 1:24pm UTC](https://forum.elixirforum.com/t/does-logger-have-a-hidden-cap-for-message-size/32369 "2025-01-31T13:24:20Z")

</div>

Background In one of our projects a client of ours complained that the logs he is getting are being capped at 2000 characters. This client is gettign his logs via a tool called Splunk and perhaps some other systems I am…

---

## [term\_to\_json - Convert (m)any terms to JSON](https://forum.elixirforum.com/t/term-to-json-convert-m-any-terms-to-json/67960)

<div class="topic-metadata">

**Author:** [@hkrutzer](https://forum.elixirforum.com/u/hkrutzer)\
**Replies:** 2\
**Last updated:** [December 8, 2024, 10:55pm UTC](https://forum.elixirforum.com/t/term-to-json-convert-m-any-terms-to-json/67960 "2024-12-08T22:55:57Z")

</div>

TermToJson - Convert Elixir Terms to Human-Readable JSON Hi everyone! I’d like to share a small library that helps serialize Elixir terms to JSON while preserving their structure and types. Do not use with untrusted inp…

---

## [Charlist values are not showing up in Logger metadata](https://forum.elixirforum.com/t/charlist-values-are-not-showing-up-in-logger-metadata/67256)

<div class="topic-metadata">

**Author:** [@gmile](https://forum.elixirforum.com/u/gmile)\
**Replies:** 8\
**Last updated:** [November 7, 2024, 7:53am UTC](https://forum.elixirforum.com/t/charlist-values-are-not-showing-up-in-logger-metadata/67256 "2024-11-07T07:53:18Z")

</div>

Is there a reason Elixir doesn’t support charlists as values in the Logger metadata? Here’s a list of things it supports today: https://github.com/elixir-lang/elixir/blob/4c7e723becbdedb091e8fff2da83a3eb3f34976d/lib/log…

---

## [How to make single login in phoenix framework?](https://forum.elixirforum.com/t/how-to-make-single-login-in-phoenix-framework/67189)

<div class="topic-metadata">

**Author:** [@ariandanim](https://forum.elixirforum.com/u/ariandanim)\
**Replies:** 11\
**Last updated:** [November 5, 2024, 7:55pm UTC](https://forum.elixirforum.com/t/how-to-make-single-login-in-phoenix-framework/67189 "2024-11-05T19:55:26Z")

</div>

Dear all, I would like to make my SAAS aplication using only single login for every user email, I mean when they try to access using same email in another pc/laptop/mac they unable make it happen, it means like this sce…

---

## [How can I disable logging of specific library?](https://forum.elixirforum.com/t/how-can-i-disable-logging-of-specific-library/56650)

<div class="topic-metadata">

**Author:** [@nallwhy](https://forum.elixirforum.com/u/nallwhy)\
**Replies:** 6\
**Last updated:** [October 14, 2024, 10:31pm UTC](https://forum.elixirforum.com/t/how-can-i-disable-logging-of-specific-library/56650 "2024-10-14T22:31:53Z")

</div>

I’m using GitHub - larskrantz/logger\_papertrail\_backend: A Papertrail backend for Elixir Logger · GitHub. From Elixir v1.15.0, it shows warnings like below. warning: the log level :warn is deprecated, use :warning inst…

---

## [How to configure Phoenix.LiveView.Socket logging levels](https://forum.elixirforum.com/t/how-to-configure-phoenix-liveview-socket-logging-levels/66587)

<div class="topic-metadata">

**Author:** [@xsteve](https://forum.elixirforum.com/u/xsteve)\
**Replies:** 7\
**Last updated:** [October 9, 2024, 8:36pm UTC](https://forum.elixirforum.com/t/how-to-configure-phoenix-liveview-socket-logging-levels/66587 "2024-10-09T20:36:21Z")

</div>

I have a deployed Phoenix LiveView App. When I start it with a shell, I see output like this: 10:43:25.306 request\_id=F\_xtup9AcaphOX8AAEvB \[info\] GET /some-page/ 10:43:25.312 request\_id=F\_xtup9AcaphOX8AAEvB \[info\] Sen…

---

## [Configuring Logger Handlers at Runtime](https://forum.elixirforum.com/t/configuring-logger-handlers-at-runtime/66356)

<div class="topic-metadata">

**Author:** [@distefam](https://forum.elixirforum.com/u/distefam)\
**Replies:** 1\
**Last updated:** [September 28, 2024, 8:55am UTC](https://forum.elixirforum.com/t/configuring-logger-handlers-at-runtime/66356 "2024-09-28T08:55:23Z")

</div>

I am trying to use the third-party schlagert/syslog erlang library for sending logs to Papertrail and running into some inconsistencies and issues around configuration. If I configure it as follows, it sends logs to Pap…

---

## [Elixir app crashing with unhelpful log messages](https://forum.elixirforum.com/t/elixir-app-crashing-with-unhelpful-log-messages/65682)

<div class="topic-metadata">

**Author:** [@Stratus3D](https://forum.elixirforum.com/u/Stratus3D)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 2:03pm UTC](https://forum.elixirforum.com/t/elixir-app-crashing-with-unhelpful-log-messages/65682 "2024-08-26T14:03:24Z")

</div>

I have an Elixir app that I’ve been running for many years, and I deployed it to a new environment and it crashed with the following logs: {"time":"2024-08-23 19:01:06.799","msg":"Running MyApp.Endpoint with cowboy 2.10…

---

## [Logging from local library not working](https://forum.elixirforum.com/t/logging-from-local-library-not-working/65017)

<div class="topic-metadata">

**Author:** [@CharlesIrvine](https://forum.elixirforum.com/u/CharlesIrvine)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 11:14pm UTC](https://forum.elixirforum.com/t/logging-from-local-library-not-working/65017 "2024-07-19T23:14:31Z")

</div>

I’m working on a new Phoenix application that uses an Elixir library application that I am also developing. My problem is that info logging from the dependent library isn’t being output. There is probably some configurat…

---

## [How can I see log metadata in dev?](https://forum.elixirforum.com/t/how-can-i-see-log-metadata-in-dev/63159)

<div class="topic-metadata">

**Author:** [@dimitarvp](https://forum.elixirforum.com/u/dimitarvp)\
**Replies:** 25\
**Last updated:** [April 27, 2024, 11:45pm UTC](https://forum.elixirforum.com/t/how-can-i-see-log-metadata-in-dev/63159 "2024-04-27T23:45:52Z")

</div>

EDIT: There has been back and forth and I was impatient, operating under the assumption that I am missing something obvious and small. Turns out it wasn’t exactly that. I accepted @LostKobrakai’s comment because it showe…

---

## [Is it possible to get notice level logs in an Elixir app?](https://forum.elixirforum.com/t/is-it-possible-to-get-notice-level-logs-in-an-elixir-app/62990)

<div class="topic-metadata">

**Author:** [@moonlunatik](https://forum.elixirforum.com/u/moonlunatik)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 1:12am UTC](https://forum.elixirforum.com/t/is-it-possible-to-get-notice-level-logs-in-an-elixir-app/62990 "2024-04-19T01:12:43Z")

</div>

So, my place of employment has some budgetary concerns and due to that, we don’t record historical info level logs, only warning and error ones. I’m developing a feature that would hugely benefit from some logs for debug…

---

## [Error logging in Elixir with OTP 21+](https://forum.elixirforum.com/t/error-logging-in-elixir-with-otp-21/20910)

<div class="topic-metadata">

**Author:** [@stefanchrobot](https://forum.elixirforum.com/u/stefanchrobot)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 5:26pm UTC](https://forum.elixirforum.com/t/error-logging-in-elixir-with-otp-21/20910 "2024-01-26T17:26:50Z")

</div>

I’m trying to prevent leaking of application secrets and personally identifiable information (PIIs) into logs. One thing is obviously making sure that we don’t log that kind of data explicitly. But the other part is tami…

[Next page](https://forum.elixirforum.com/tag/logging/34.md?match_all_tags=true&page=1&tags%5B%5D=logging)
