Custom log levels per module/logger would be a nice enhancement.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4Lzgv8F3q9VU4Q%3DzBVW6wqwFwF4yGnU%2BntkS1CgVJmQTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4Lzgv8F3q9VU4Q%3DzBVW6wqwFwF4yGnU%2BntkS1CgVJmQTQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAAPY6eOCJ-W9bnRaZmHwq1B7Qp0xB4e%3Dshr1gMDUNzTETBqdLQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/55782096-fc7e-44b1-b413-c53d092aa5df%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAB0F1_xi1f38YaDhBcKTZ6PSqC70zsiWPeYpO5tFnOs2%3DRdXNw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/93b0f89e-7f32-470e-88ce-5e7380abb576%40googlegroups.com.
The idea is that you can set the log level for specific modules. For example, your main log level could be set to info, but you could also specify for module Foo.Bar, you want to log at the debug level.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4LU%3D4tKXuvmsGu3TnvtGHMXQEtss7ZpqBn_Pm-Bdw%3DOag%40mail.gmail.com.
info() -> case {whereis(lager_event), lager_config:get(loglevel, {0, []})} of {undefined, _} -> fun () -> {error, lager_not_running} end(); {Pidtest10, {Leveltest10, __Tracestest10}} when __Leveltest10 band 64 /= 0 orelse __Tracestest10 /= [] -> lager:do_log(info, [{application, test}, {module, test}, {function, info}, {line, 10}, {pid, pid_to_list(self())}, {node, node()} | lager:md()], "info:~s", ["test"], 4096, 64, __Leveltest10, Tracestest10, Pidtest10); _ -> ok end.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/48d21676-5bc3-4216-abb9-964e03546c68%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/2817a16a-ecf5-4bcb-878f-2076daf1bd93%40googlegroups.com.
Beautiful is
better than ugly,
Explicit is better than implicit,
Simple is better than complex,
Complex is better than complicated.
The Zen of Python, by Tim Peters
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/27501c0d-4654-4e96-a1f0-0e50a1514907%40googlegroups.com.
Hi,When the process state or last message is "big" the stacktrace might not be visible because is truncated. Is it possible to have more granularity on what we truncate?Bruno.
On Sunday, May 10, 2015 at 9:59:14 AM UTC+1, José Valim wrote:
Folks,When we started the Logger library, we have brought in many features but some of them were postponed to after 1.0. You can see the full list here:The remaining features we have pending today:1. Tracing support: it mostly includes support to perform certain actions based on metadata2. File logging support and log rotation: the ability to log to files and rotate logsI believe tracing support would be useful and feedback on what you would like to see when it comes to tracing is very welcome. However, I am not convinced on the usefulness of file logging support nor log rotations as tools like logrotate do an excellent job and it is easy to pipe the existing log to a file. Thoughts?Also, is there any other feature you would like to see in Logger?
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/BAFFDDFF-6333-4225-B9F8-8BB8381B0C10%40gmail.com.--
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-co...@googlegroups.com.
However, I am not convinced on the usefulness of file logging support nor log rotations as tools like logrotate do an excellent job and it is easy to pipe the existing log to a file.