119 Commits

Author SHA1 Message Date
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
MarkMcCaskey
df53678a34 Add more documentation to Metadata struct 2017-05-27 14:18:28 -04:00
James Higgs
257c25169a Update docs for Record and add example 2017-05-27 19:02:16 +01:00
David Tolnay
502c7127ae Merge pull request #172 from nivkner/error-msg
make error description consistent with display
2017-05-24 13:52:58 -07:00
Niv
61651930be use static string for both error message variants 2017-05-24 23:31:27 +03:00
Niv
d2e7afef39 keep error messages in sync 2017-05-24 18:28:55 +00:00
Niv
c7531e8253 update error message in test 2017-05-24 16:27:39 +03:00
Niv
18b4466228 make error description consistent with display 2017-05-24 13:32:21 +03:00
Michał Budzyński
473b867b52 Added links to SetLoggerError and ShutdownLoggerError docs 2017-05-24 12:10:03 +02:00
morrme
8b64c47a9f update html_root_url
Closes: #141
2017-05-23 23:01:50 -05:00
morrme
d0721f8eec change html_root_url
Closes #141
2017-05-23 22:24:00 -05:00
David Tolnay
c84a48552d Merge pull request #165 from AndyGauge/doc-features
Documentation: added max_log_level per target
2017-05-23 18:43:25 -07:00
Andrew Gauger
f847dffe43 Build errors caused by toml syntax
Without declaring toml before the block, the doc-interpreter expected Rust.
2017-05-23 18:07:47 -07:00
David Tolnay
8ff0a6141d
Merge pull request 156 from nivkner/parse-error
Conflicts:
    src/lib.rs
2017-05-23 17:04:58 -07:00
Andy Gauge
d0c8b10707 Documentation: added Cargo.toml directive to set maximum logging level per target 2017-05-23 16:40:54 -07:00
David Tolnay
269d72b8e3
Merge pull request 164 from AndyGauge/ex-log_enabled
Conflicts:
    src/macros.rs
2017-05-23 16:25:08 -07:00
Andy Gauge
788afcce89 extended example to use both patterns for log_enabled! 2017-05-23 15:49:53 -07:00
Ottavio Hartman
d4748011fa Removed "stuttering" of types, like LogLevel -> Level.
The affected enums, structs, and functions include:
- LogLevel
- LogLevelFilter
- LogRecord
- LogMetadata
- LogLocation
- MaxLogLevelFilter (now MaxLevelFilter)
- max_log_level (now max_level)
2017-05-21 20:43:59 -04:00
Niv
de11f3988b Remove Log from error type 2017-05-21 19:52:56 +03:00
Alex Crichton
044e328698 Merge pull request #158 from omh1280/crate_linkify
Linkified crate doc
2017-05-21 10:27:10 -05:00