130 Commits

Author SHA1 Message Date
Steven Fackler
ec82f77c72 Drop Option wrapper around LOGGER
Avoids an unwrap
2016-01-15 20:59:21 -08:00
Steven Fackler
c7f116ec26 Mention that set_logger requires use_std. 2016-01-15 20:52:17 -08:00
Steven Fackler
cb09c6e544 Merge pull request #70 from Amanieu/no_std2
Add support for no_std
2016-01-15 20:35:00 -08:00
Amanieu d'Antras
2644916237 Add support for no_std 2016-01-14 23:55:22 +00:00
Aaron Turon
7067c9b8c1 Merge pull request #67 from sfackler/panic-handler
Add a logging panic handler
2016-01-06 21:16:10 -08:00
Steven Fackler
30d76c5732 Add a logging panic handler 2015-12-27 08:36:50 -07:00
Alex Crichton
d482c528d9 Bump log to 0.3.4 2015-11-26 09:02:55 -08:00
Alex Crichton
dcf64377a7 Merge pull request #64 from sinistersnare/patch-1
Fix typo
2015-11-10 15:19:55 -08:00
Davis Silverman
7dc8fa6139 Fix typo
chose -> choose.

:)
2015-11-10 17:30:30 -05:00
Alex Crichton
c2cee9a6e4 Bump to 0.3.2 2015-11-04 17:56:53 -08:00
Alex Crichton
7a66c45a8d Touch up some style and docs 2015-11-04 17:56:41 -08:00
Alex Crichton
0adc7f9a25 Merge pull request #48 from nicksanders/master
env_logger: Add config to Logger to allow changing log format etc
2015-11-04 17:42:38 -08:00
Alex Crichton
9b56330f20 Bump dep on libc 2015-11-03 13:38:38 -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
Alex Crichton
abc680a6f0 Merge pull request #63 from sfackler/move_static_max_level
Move __static_max_level to other hidden functions and add warning
2015-10-29 22:21:00 -07:00
Steven Fackler
d2433cf0ef Move __static_max_level to other hidden functions and add warning 2015-10-29 22:05:02 -07:00
Steven Fackler
0405d78f79 Bump to 0.3.3 2015-10-27 12:17:11 -07:00
Alex Crichton
aa8618c840 Merge pull request #58 from mbrubeck/debug
Statically disable debug logging in optimized builds
2015-10-09 09:26:58 -07:00
Matt Brubeck
737f8ecbfa Test the max_level features 2015-10-08 13:46:15 -07:00
Matt Brubeck
8a2e66f3a7 Replace cfg(log_level) with Cargo features 2015-10-08 13:31:36 -07:00
Steven Fackler
1a586d04a7 Merge pull request #59 from mbrubeck/example
[docs] Use a better example for log_enabled!
2015-10-02 22:26:04 -04:00
Matt Brubeck
987ae0340f [docs] Use a better example for log_enabled!
The previous example code for the `log_enabled!` macro doesn't properly
demonstrate why to use it, since the use of `log_enabled!` doesn't improve
anything.  (The `debug!` macro already prevents the expensive call when debug
logging is disabled.)
2015-10-02 10:44:44 -07:00
Alex Crichton
ad1cfcac91 Update travis url in README 2015-09-21 17:01:43 -07:00
Alex Crichton
92590f0cd2 Bump log to 0.3.2 2015-09-21 16:48:48 -07:00
Alex Crichton
d42c715d22 Merge pull request #56 from carols10cents/using-in-tests
Add instructions and example for using env_logger in tests
2015-09-20 09:55:57 -07:00
Carol (Nichols || Goulding)
d591214149 Recommend using let _ = env_logger::init() for multiple tests 2015-09-20 11:05:36 -04:00
Carol (Nichols || Goulding)
5b33d83989 Add instructions and example for using env_logger in tests
This took me some trial and error to get working.
2015-09-13 19:04:07 -04:00
Alex Crichton
a83378f0cd Don't call vcvarsall manually 2015-07-31 11:47:56 -07:00
Alex Crichton
fb2d9aa175 Test on 32-bit msvc 2015-07-23 08:26:16 -07:00
Steven Fackler
de01b1305f Merge pull request #50 from apasel422/patch-1
s/chose/choose/
2015-07-08 10:12:09 -07:00
Andrew Paseltiner
99857a7381 s/chose/choose/ 2015-07-08 13:08:51 -04:00
Alex Crichton
f357fc8ae8 Use combined installer for targets 2015-06-30 17:13:24 -07:00
Huon Wilson
5453e16166 Merge pull request #49 from sfackler/env-docs
Document where env-logger logs
2015-06-16 23:14:52 -07:00
Steven Fackler
63fee41a26 Document where env-logger logs
Closes #45
2015-06-16 22:58:19 -07:00
Alex Crichton
a982fbf883 Test on MinGW and MSVC 2015-06-13 11:45:54 -07:00
Steven Fackler
c260c96553 Merge pull request #46 from grbritz/patch-1
Fixed typo in LogLevelFilter enum documentation
2015-06-06 20:57:10 -04:00
Graeme Britz
2bcde9a6c1 Fixed typo in LogLevelFilter enum documentation 2015-06-06 16:45:41 -07:00
Alex Crichton
07fbe6bf43 Merge pull request #44 from sfackler/dead-code
Disable dead code warnings for LOC static
2015-05-26 11:46:56 -07:00
Steven Fackler
968bdae2fa Disable dead code warnings for LOC static
It's basically an implementation detail and can end up popping up in
dead code warnings if the log statement is in a dead function.

Closes #43
2015-05-26 09:08:23 -07:00
Alex Crichton
f31bf9e516 Bump env_logger to 0.3.1 2015-05-18 08:48:23 -07:00
Alex Crichton
90f5973279 Merge pull request #41 from sfackler/env-error-default
Fix default log level
2015-05-18 08:49:34 -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
Alex Crichton
f0d5477a5f Test on rust 1.0.0, nightly, and beta 2015-05-16 21:31:45 -07:00
Alex Crichton
109aec7d75 Merge pull request #40 from sfackler/misc-fixes
Misc fixes
2015-05-13 00:20:30 -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
e4136bb17c Test the env crate as well 2015-04-29 10:41:43 -07:00
Alex Crichton
3a3a86f7ca Add appveyor build status to README 2015-04-29 10:41:25 -07:00
Alex Crichton
c781409cfd Add appveyor config 2015-04-27 10:25:46 -07:00