20 Commits

Author SHA1 Message Date
Philipp Sieweck
3bb83ac7db Fixed handling of filter regexps.
Regexps in RUST_LOG as explained in the module documentation should
only allow log messages that match the given expression and not the
other way around.
2016-01-12 15:59:59 +01:00
Alex Crichton
7a66c45a8d Touch up some style and docs 2015-11-04 17:56:41 -08:00
Nick Sanders
5acb6e454f env_logger: Add LogBuilder to allow changing the log format, default log level and the environmental variable used. This adds format to the Logger struct 2015-11-01 11:38:49 +00:00
Steven Fackler
63fee41a26 Document where env-logger logs
Closes #45
2015-06-16 22:58:19 -07:00
Steven Fackler
f2aad6bb23 Fix default log level
Turns out we did actually use to log errors by default!
2015-05-17 23:04:49 -07:00
Steven Fackler
725d22cafd Don't add an extra mutex around stderr
It's synchronized internally so there's no reason to slap another mutex
on top.
2015-05-12 23:11:54 -07:00
Steven Fackler
28d066f48d Set max log level to off if no directives 2015-05-12 23:09:19 -07:00
Steven Fackler
76a6a0374b Fix env logger docs
Logging is disabled by default.

Closes #39
2015-05-12 23:09:00 -07:00
Alex Crichton
c33b2a9564 Bump to 0.3.1 2015-03-28 11:21:45 -07:00
Alex Crichton
f9a42ca139 Update to rust master 2015-03-14 11:03:55 -07:00
Alex Crichton
4c7e9669a1 Move from old_io to io 2015-03-12 13:53:12 -07:00
Steven Fackler
207e329267 Encapsulate data passed to Log::enabled
We may want to add things to the information provided to `log` and
`enabled`. slf4j provides the ability to pass `Marker` objects when
logging which can be used for more advanced filtering for example.
2015-03-07 22:34:39 -08:00
Steven Fackler
2ee7110a8f "Encapsulate" LogLocation
We can't make it fully private but we can mangle the field names and
hide them from the docs. It's important to keep the internals of
`LogLocation` hidden so that we have the option of e.g. adding the
function name if such a syntax extension's added to rustc or switching
the implementation to look at debug info.
2015-03-07 21:53:54 -08:00
Alex Crichton
44e65c378d Use correct feature name 2015-02-23 23:41:48 -08:00
Alex Crichton
822fb04cb6 Update to rust master 2015-02-12 10:48:27 -08:00
Matthew Maurer
63d573cc2c Fix FromStr and attributes for env_logger 2015-02-03 10:15:25 -05:00
Alex Crichton
ca7858198d Bump env_logger to 0.2.1 2015-01-28 07:58:59 -08:00
Alex Crichton
a96ca990cb Travis and documentation tweaks 2015-01-27 07:30:34 -08:00
Steven Fackler
3cb3bff11b Add some documentation + copyright notices 2015-01-26 23:51:42 -08:00
Steven Fackler
abf0c0aafd Add env_logger 2015-01-26 23:25:43 -08:00