Commit Graph

321 Commits

Author SHA1 Message Date
Steven Fackler
4e30825439 Bump to 0.4.0-rc.1 2017-12-05 22:23:25 -08:00
Steven Fackler
14ac73118f
Merge pull request #245 from sfackler/simpler-init
Remove MaxLevelFilter in favor of a simple function
2017-12-05 21:30:46 -08:00
Steven Fackler
b1b5196775 Remove MaxLevelFilter in favor of a simple function
Closes #243
2017-12-05 21:22:22 -08:00
Alex Crichton
1e12cfa3b3
Merge pull request #246 from sfackler/test-1.15
Explicitly test against 1.16.0
2017-12-05 23:02:43 -06:00
Steven Fackler
756ce86326 Still test against stable 2017-12-05 20:57:25 -08:00
Steven Fackler
fb65deee08 Explicitly test against 1.16.0
We want to know if we're dropping support for old releases.
2017-12-05 20:54:55 -08:00
Alex Crichton
79ded736ca
Merge pull request #244 from sfackler/optional-location
Make module_path, file, and line Options
2017-12-05 22:52:59 -06:00
Steven Fackler
84198000c4 Make module_path, file, and line Options
Closes #242
2017-12-05 20:19:56 -08:00
Steven Fackler
3f6538e220
Merge pull request #241 from GuillaumeGomez/master
fix doc warnings
2017-11-09 17:31:58 -08:00
Guillaume Gomez
e7247ba54e fix doc warnings 2017-11-10 01:39:38 +01:00
Steven Fackler
b8d931bf88 Merge pull request #239 from FuGangqiang/master
fix doc
2017-10-22 08:53:35 -07:00
FuGangqiang
3a4f08db73 fix doc 2017-10-22 19:12:47 +08:00
Steven Fackler
1c682c4cf1 Merge pull request #238 from sfackler/docs-rs-fix
Fix docs.rs feature set
2017-10-12 22:29:55 -07:00
Steven Fackler
24bec47c65 Fix docs.rs feature set 2017-10-12 22:24:26 -07:00
Steven Fackler
e498e82d37 Merge pull request #236 from sfackler/doc-cleanup
Remove static log config info from macro docs
2017-10-12 22:00:48 -07:00
Steven Fackler
367b6c3062 Remove static log config info from macro docs
It makes more sense to centrally locate that information.

Also run rustfmt.
2017-10-12 21:54:34 -07:00
Steven Fackler
52aab68069 Merge pull request #235 from sfackler/feature-docs
Better documentation for filter features
2017-10-12 21:44:40 -07:00
Steven Fackler
401414af13 Better documentation for filter features
Closes #197
2017-10-12 21:35:46 -07:00
Steven Fackler
369c728669 Merge pull request #234 from sfackler/feature-name
Rename the use_std feature to std
2017-10-12 21:17:58 -07:00
Steven Fackler
498a9444de Rename the use_std feature to std
Closes #176
2017-10-12 21:12:54 -07:00
Alex Crichton
c3334f8122 Merge pull request #232 from sfackler/doc-0.4
Add a note about version compatibility
2017-10-07 21:11:44 -05:00
Steven Fackler
213b85dab2 Add a note about version compatibility 2017-10-07 14:44:00 -07:00
Steven Fackler
7bd88ebd3a Remove env_logger stuff from README 2017-10-07 13:46:46 -07:00
Alex Crichton
0086f144ea Merge pull request #231 from sfackler/master
Some minor tweaks
2017-10-05 21:57:07 -05:00
Steven Fackler
6e2dcf38a5 Some minor tweaks 2017-10-05 19:39:48 -07:00
Alex Crichton
4144cf64c4 Merge pull request #230 from sfackler/default-no-std
Restructure initialization setup
2017-10-04 10:59:46 +02:00
Steven Fackler
740f05f053 Stop publishing master docs 2017-09-30 22:27:00 -07:00
Steven Fackler
dc11b85c07 Restructure initialization setup
try_set_logger_raw is now set_logger and try_set_logger is now
set_boxed_logger. The use_std feature is now disabled by default. The
old set_logger has been removed.

When we did the crate evaluation for log, we wanted to add more variants
of set_logger that e.g. panicked by default, but I'm no longer convinced
that's a good idea. There are going to be very few instances of actually
calling these methods explicitly, since each logger implementation
should be providing their own init method that calls them. Having a huge
constellation of functions that all do basically the same thing just
makes things really confusing. We also don't want to encourage logger
implementations to only provide an init function that panics because a
common way of working with logging in tests is to try to init the system
in each test and ignore the result.
2017-09-30 21:31:07 -07:00
Alex Crichton
2901ed59e3 Merge pull request #228 from sfackler/no-raw-ptr
Use a &'static Log rather than raw pointer
2017-09-27 23:51:09 -05:00
Steven Fackler
e3d8f25c8b Use a &'static Log rather than raw pointer
This allows us to make try_set_logger_raw a safe function. It turns out
that every example dealing with that function was violating the static
lifetime requirement. Fun!
2017-09-27 21:28:56 -07:00
Alex Crichton
722fbca55e Merge pull request #226 from sfackler/non-static
Don't force module_path and file strings to be static
2017-09-26 08:51:29 -05:00
Steven Fackler
3843fc9fc1 Don't force module_path and file strings to be static
Closes #206
Closes #94
2017-09-25 20:54:39 -07:00
Steven Fackler
20f1c82845 Merge pull request #208 from alisha17/set_logger_raw
Rename set_logger_raw to try_set_logger_raw
2017-09-17 14:13:35 -07:00
Ashley Mannix
1895c645c4 Remove env_logger crate (#224) 2017-09-18 07:03:00 +10:00
Alisha
308e6f33d6 Change set_logger_raw to try_set_logger_raw 2017-08-18 00:56:29 +10:00
Steven Fackler
8af5f3c688 Fix documentation links
Closes #216
2017-08-13 16:54:53 -07:00
Steven Fackler
7e37f6fb89 Merge pull request #214 from sfackler/pub-logger
Replace log and enabled functions with logger
2017-08-13 16:35:44 -07:00
Steven Fackler
c4faf3dbb0 Replace log and enabled functions with logger
We also have flush on the Log trait, and at that point it makes more
sense to just return the logger directly.
2017-08-13 13:21:11 -07:00
Steven Fackler
01ada4305b Merge pull request #215 from sfackler/super-secret
Add a secret bit of info for 0.3.x
2017-08-13 08:31:26 -07:00
Steven Fackler
e5b3bbfd38 Fix travis 2017-08-12 22:18:15 -07:00
Steven Fackler
5332f71701 Add a secret bit of info for 0.3.x 2017-08-12 21:53:41 -07:00
Alex Crichton
814340617b Merge pull request #212 from sfackler/max-level-const
Turn __static_max_level() into a const
2017-08-12 11:15:19 -05:00
Alex Crichton
ac921f9279 Merge pull request #213 from sfackler/no-panic-handler
Remove deprecated panic hook
2017-08-12 11:14:43 -05:00
Alex Crichton
2462ef5197 Merge pull request #211 from sfackler/public-log
Make __log and __enabled public
2017-08-12 09:53:46 -05:00
Steven Fackler
c538659838 Remove deprecated panic hook 2017-08-12 00:18:20 -07:00
Steven Fackler
3a846a6022 Turn __static_max_level() into a const 2017-08-12 00:13:52 -07:00
Steven Fackler
e33d923cc2 Make __log and __enabled public
They now take a `&Record` and `&Metadata` respectively. Shim libraries
from other logging frameworks will want to construct these types
directly rather than using the log macros.
2017-08-11 23:29:39 -07:00
Steven Fackler
66ffd92b7c Merge pull request #200 from omh1280/record_metadata_construction
Create builders for `Metadata`, `Record`, and `Level`.
2017-08-11 23:05:16 -07:00
Ottavio Hartman
549f47c9ff Create builders for Metadata and Record. Remove Level and inline its fields in Record. 2017-08-10 09:41:35 -04:00
Steven Fackler
4fb1ee8c79 Merge pull request #196 from danielscottt/flush
remove shutdown and add `flush` to `Log` trait
2017-08-09 19:00:42 -07:00