--
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.
For more options, visit https://groups.google.com/d/optout.
--
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.
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-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/CAB0F1_xi1f38YaDhBcKTZ6PSqC70zsiWPeYpO5tFnOs2%3DRdXNw%40mail.gmail.com.
Custom log levels per application are all I feel is missing
--
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.
+1 for Custom log levels per module/loggerthat'd be very handy when I need to debug only one part of the system without being flooded by the debug statementsDavid
--
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.
I want to be able to configure how logger behaves depending on the application. Others suggested module, which sounds potentially better. Imagine doing this in config.exs of the hosting 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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LU%3D4tKXuvmsGu3TnvtGHMXQEtss7ZpqBn_Pm-Bdw%3DOag%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAA1-O0zZqFQq%3D%2B7E0cO1-TJ8MgROJdGyceTe6Ur5AP0_va7vJw%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.
Could be nice to have ability to use custom, dynamic log-levels. Currently we only have "error", "warn", "info" and "debug" levels and what I want is ability to do something like Logger.log(:my_level, "My log message") to get "21:34:31.786 [my_level] My log message". All custom "log-levels" might be treated as "debug" level.
воскресенье, 10 мая 2015 г., 11:59:14 UTC+3 пользователь José Valim написал:
--
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
Ok, I still think syntax format of Logger.log(:mylevel, msg) is better comparing to Logger.debug(msg, level: :mylevel) but in case it's not necessary to achieve routing to different files, I'm ok with it.
пятница, 3 июля 2015 г., 8:19:59 UTC+3 пользователь José Valim написал:
--
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.
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.