> > While I get your point, there's also the common use case of logging > messages; that is, I usually include the app name in case someone decides > to log everything to the same log. There's also message displayed to the > end user. I mean I usually put something in the message about exactly > which app it is in case the end-user decides to capture a screen shot or > something like that. For whatever it's worth, having a standardized > variable like __APP__ would help with those use cases and make it a little > easier to maintain. >
Logger automatically includes the application in the metadata. You don't need to do anything besides configuring Logger to include it as part of the logged metadata: config :logger, :console, metadata: [:application] -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K5EvZvRumjHQrDQ9cOHjuL8J6MgmxiXDgOj492QwA2aA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
