The lazy way i did was in `format_stacktrace_entry({module, fun, arity, 
location}` compare :application.get_application(self()) with 
:application.get_application(module). If they are the same, then i do 
`IO.ANSI.yellow() <> result_of_line_formatting <> IO.ANSI.red()`.

On Tuesday, April 30, 2024 at 5:46:02 PM UTC Pedro Assunção wrote:

> In essence, it would colorize the main application name when reading the 
> stacktrace. (Can't post an example picture because my message gets 
> insta-deleted) It makes it immediately apparent what lines are from the 
> actual application we are coding. The biggest hurdle would be to figure out 
> the "current" error logger color (red) and maybe allow customizing the 
> color of the main app. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/37e5411b-3fc3-4700-a0e1-472985488c30n%40googlegroups.com.

Reply via email to