siberian-fast-food / alogger

Simply the best logging framework for Erlang
Apache License 2.0
50 stars 16 forks source link

Zero-config easy start for new library users #12

Closed kvakvs closed 13 years ago

kvakvs commented 13 years ago

Change library default configuration (when alog.config not found and no flows configured) so that it prints to alot_tty by default.

get rid of step 4 in:

  1. Add alog to deps in rebar and run rebar get-deps
  2. Add -include_lib( "alog/include/alog.hrl" ).
  3. Add application:start( alog ) (and SASL!)
  4. Configure proper flows or create config file and add to command line with erl -config priv/alog
  5. Try ?INFO("Hello world")

Makes learning curve easier for new users.

Cy6erBr4in commented 13 years ago

I've just pushed changes for this issue.

@kvakvs, please test it, and send your comments. thanks

kvakvs commented 13 years ago

Works as intended. Thanks.