khia / exlager Goto Github PK
View Code? Open in Web Editor NEWElixir binding for lager
License: Apache License 2.0
Elixir binding for lager
License: Apache License 2.0
I just tried exlager out and it seems that unless you start lager app at least once before the compilation pass, it would fail with this error: (undefined module :"lager_mochiglobal:loglevel")
.
I presume you didn't catch the problem because you already had lager started at least once. I didn't spend much time on this one so I can't actually 100% confirm that this is the reason for the above error. However, this is a huge deal breaker because, well, it renders exlager unusable.
Any thoughts on how to fix this?
Does it use the same Apache license as Lager itself? If so it would be great to have a copy of the license file in the repository.
Hi,
I'm trying to use exlager. Everthing looks ok, until I try to configure lager.
here in my mix file
def project do
[ app: ..., elixirc_options: options(Mix.env)]
end
def options(:test) do
[exlager_level: :emergency]
end
but when I run the tests:
11:18:56.893 [info] Application lager started on node nonode@nohost
11:18:56.893 [info] Application exlager started on node nonode@nohost
11:18:56.893 [info] Application re_inspector_backend started on node nonode@nohost
11:18:56.914 [info] Application ex_unit started on node nonode@nohost
I'm using Elizir 0.12.4 & exlager SHA1 779a753
David
I'd be great if it was possible to specify compiler's option exlager_level
as :debug
and not 7
. Thoughts?
Updating to Elixir 0.14.0 I got this error:
iex> Code.compiler_options exlager_level: :debug
** (ArgumentError) unknown compiler options: exlager_level
Hello,
I consider Exlager really nice but (if I didn't miss something) in the README there is not mentioned one crucial moment - underlying Lager has it's own default setting which is not affected by Exlager settings. It took me some time to realize this...
For instance if you set
elixirc_options: [exlager_level: :debug, exlager_truncation_size: 8096]
you still get no debug messages in the console because lager has default
{handlers, [{lager_console_backend, info}, ...
(see https://github.com/basho/lager/blob/master/src/lager.app.src )
IMHO there should be some warning in the README that you must override the default with app.config, explicitly use lager:set_loglevel/2 or such... and ideally Exlager should have some way to set Lager's options.
P.S. thank you very much for your work on Exlager!
Hi! I don't see exlager on hex.pm. Any plans on publishing it there? If not, would you mind if I publish it (as a contributor on this repo, or from a fork)?
Cheers,
Michael
It depends on Mix being started, and this is often not the case (for example, when using exlager from an exs)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.