Guillaume Gomez
e7247ba54e
fix doc warnings
2017-11-10 01:39:38 +01:00
FuGangqiang
3a4f08db73
fix doc
2017-10-22 19:12:47 +08: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
401414af13
Better documentation for filter features
...
Closes #197
2017-10-12 21:35:46 -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
6e2dcf38a5
Some minor tweaks
2017-10-05 19:39:48 -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
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
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
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
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
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
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
dan pittman
44bbdbd93b
removes shutdown and adds flush to Log trait.
...
Signed-off-by: dan pittman <danielscottt@gmail.com>
2017-07-17 08:38:02 -07:00
jesusbv
d3aa95b4c4
logging levels and coresponding macros
2017-07-12 08:57:19 +01:00
Alisha
a1e0bcacef
set_logger panics on error
2017-06-22 10:53:05 +10:00
Brian Anderson
26d6497965
Merge pull request #195 from budziq/no_framework
...
Toned down the references to the "frameworks"
2017-06-19 16:39:00 -05:00
Michal Budzynski
7b11893779
expanded log! docs for max_level_*
2017-06-07 23:18:56 +02:00
Michal Budzynski
c75c587008
Toned down the references to the "frameworks"
...
Also added link to pretty_env_logger as it has good docs now.
2017-06-04 18:56:15 +02:00
Michal Budzynski
0831c0b6c8
Corrected header level for "Example" sections
2017-06-03 09:40:23 +02:00
Michal Budzynski
fb9f3a0d10
Added "Errors" section to set_logger docs
2017-06-02 22:47:07 +02:00
David Tolnay
255cf726e0
Merge pull request #188 from budziq/sinks_docs
...
Added links to logging frameworks
2017-06-02 12:36:07 -07:00
Michal Budzynski
969107c313
Added links to logging frameworks
2017-06-02 21:25:44 +02:00
David Tolnay
48d7714a9d
Merge pull request #189 from nivkner/parse-link
...
add link to from_str method in ParseLevelError
2017-06-02 11:23:57 -07:00
David Tolnay
c838a58ad9
Merge pull request #190 from nivkner/set-logger-raw
...
improve docs of set_logger_raw function
2017-06-02 08:13:32 -07:00
Niv
593159ccc8
improve docs of set_logger_raw function
2017-06-02 11:07:19 +03:00
Niv
3773e4dd19
add link to from_str method in ParseLevelError
2017-06-02 08:49:41 +03:00
Raphaël Huchet
e583efadb9
Add example to set_logger
2017-05-30 17:51:50 +02:00
Raphaël Huchet
c15565522f
max_level doc improvements
2017-05-30 10:21:16 +02:00
David Tolnay
4d51dbff5b
Clean up serde test formatting after rustfmt
2017-05-29 21:02:44 -07:00
David Tolnay
473aa60a92
Run rustfmt
2017-05-29 20:58:11 -07:00
David Tolnay
5fac11ad3b
Merge pull requests 161 and 181
...
Conflicts:
Cargo.toml
src/lib.rs
2017-05-29 20:50:00 -07:00
Chris Fung
000a21bc8c
add ci config and fix use of feature flag
2017-05-29 17:04:40 -07:00
Chris Fung
8b1523aa2f
Add serde impls to LogLevel and LogLevelFilter
2017-05-29 16:26:34 -07:00
Meven
31f55c0545
Add serde impls for LogLevel/LogLevelFilter
2017-05-29 13:17:00 +02:00
Niv
6c857dc89a
rename error type for consistency
2017-05-29 11:00:26 +03:00
James Higgs
3101cacdd3
Prevent redirects in links to log! macro
2017-05-27 22:27:56 +01:00
James Higgs
5394a991ff
Update docs for Location struct and add example
2017-05-27 21:37:30 +01:00
David Tolnay
1389e2ddeb
Merge pull request #178 from jehiggs/master
...
Record Doc Improvements
2017-05-27 12:14:49 -07:00
James Higgs
c012469bf2
Change log method link to avoid conflict with Log trait
2017-05-27 20:12:32 +01:00
MarkMcCaskey
739bb4ae85
Fix formatting of Metadata documentation
2017-05-27 15:03:58 -04:00
James Higgs
fe7f15501a
Add a Use header
2017-05-27 19:36:59 +01:00