215 Commits

Author SHA1 Message Date
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
David Tolnay
eea9cb2e3d Merge pull request #168 from morrme/issue-141
change html_root_url
2017-05-23 23:07:44 -07:00
morrme
8b64c47a9f update html_root_url
Closes: #141
2017-05-23 23:01:50 -05:00
morrme
73770c9fb1 add reminder to Cargo.toml 2017-05-23 22:59:06 -05:00
morrme
d0721f8eec change html_root_url
Closes #141
2017-05-23 22:24:00 -05:00
David Tolnay
01b1a844a3 Release log 0.3.8
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJZJPQRAAoJEPm6FDuV/22C48MP/iQsIhkkidP39e3jSwZ7nByp
 68Y5Of3naMerJ/Kt21wWp+rGQ1f8ZE1hMB0pv02yq1ZsB9HpFTtLlwDtn4Uga26Z
 6PspyQjBnUx+P0oQbZRZjbbG7J6FaPKT3S6xM0aQDD6W8tasFDMSioUeMoV81+e8
 BEbvRUWkXp/GTlqZ/0NXKi3IZrEmzS+nQv4tKyD5p6m+c2xpM7lINNaf2KF/RnFW
 HN88B/PiygSWjd48cS1e8RxQ2+eottqH9mJ6Ru1QdKbtXsMNbFsBMYb5wpMxhk+N
 +pny+VpaOn+2iop14ckVnkyPxZ45JkgwcGGyZf7/ztUd+yQtIwbbY7TvpWsG58hI
 31N5t7UXF2H992jiLayh7UCo+fNXVCxGuTrmjZ89MxaA+wPPECneyJcZqyPafNNu
 h/WMoTc+T+K++y07uomfU/XcQLCwH/ZwI2LNJT2u4r2EwP7e5WiqVsGSHqXNyhHw
 QSrJIBChKlGcAnoolPQXVQr1XQU5aFh6nR3GUwYXp/Ew9/T5LrfvIBE4DXWJ4Yx6
 vV6mGXivRWVFZvyiSXcwm0bthBfslXdQ+0ZMTQXGbJxqqYhxcOF4XtObb4/tvBw6
 Ri8uPXKc53VBsN06GZxvuv5PgVDZHff55QJ1zxZiC66OjT78xHp/Vf4DYdcX8fL0
 S8FwxKpo+3F/Dyxz2U1/
 =pDLZ
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJZJPSFAAoJEPm6FDuV/22CFuwP/1lH032PhcJeyUStdHIXBSiz
 cUfJVMNwCjKemPyN5OuR14nfVOXOUMipBvfh3q5BlehfItYZXG+CIXzttJr3RSFk
 kmM/c+vVsGaJ2acc/GP2HSLyix4sGJh3Wkq4k7oiWSK4sGX37q5VSsY3/hPusCG5
 rYXPTquKCWk3W21FPrSJWi/u9L0MdF4bz6JYPkFzm8RFXQFNphJsHiL2K+DHh9ub
 PviQunuHXJ7iZrxZFAC150OL86ArUfrvedN/FQMKpNgWZQLghZdyS37YLdKGyGAB
 VRFws5YB8XXGy8fUsaIx585kAjqT9BE8K0DhjzsCuYFkiff6ra9p5/x429eU+0ue
 bomJKcmTmnQHrsiBY3tufVp2vJyeSasTrvVquCjvzpLlXNx5MgMLwSVArvAtnyiM
 iIVInqdh31LR/vU8Y3JdQCO7tvheOOVqXXGYTcrZkCzwGkzAF8pylxkS+BTGdfA+
 3wIOq+AhNRpTwJHAzNpnFo+d/sHqdw3j3IDr+EdeFAD8dyqeXfNhlwuFo/uOdgqj
 PHxDQj8Ww27KgnHhiTRNnQuHIYqyVhC7QliGDEDIPYWFDvY6bvGQQGwHijICGaKz
 nzzfXZXOc/7uPTgCi6t0l/+ei6o1SieX7Gg8Zz7niPXtjCI7O9HcergdiVW1LGAo
 N1NFmZrncDTfixQyyfJy
 =QcQq
 -----END PGP SIGNATURE-----

Merge tag 0.3.8 into master
2017-05-23 19:48:29 -07:00
David Tolnay
98abd8feea
Bump log to 0.3.8 and env_logger to 0.4.3 env_logger-0.4.3 0.3.8 2017-05-23 19:46:09 -07: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
David Tolnay
8a64037791
Merge pull request 55 from carols10cents/env-var-example
Conflicts:
    README.md
2017-05-23 18:40:21 -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
David Tolnay
07d3e7df6e
Disable publishing the breaking changes 2017-05-23 16:18:55 -07:00
David Tolnay
fbd57e47f2 Merge pull request #162 from omh1280/stutter
Removed type "stuttering"
2017-05-23 16:17:35 -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
cf501f6375 Merge pull request #160 from opilar/bugfix/documentation-link
Docs link to docs.rs
2017-05-21 10:28:28 -05:00
Alex Crichton
c7c232b921 Merge pull request #159 from opilar/feature/badges
Cargo.toml badges
2017-05-21 10:28:10 -05:00
Alex Crichton
044e328698 Merge pull request #158 from omh1280/crate_linkify
Linkified crate doc
2017-05-21 10:27:10 -05:00
Alex Crichton
85124a326c Merge pull request #157 from omh1280/loglevel_doc
LogLevel and LogLevelFilter doc improvements.
2017-05-21 10:26:52 -05:00
Alex Crichton
49c78892ef Merge pull request #155 from omh1280/macro_docs
Added macro examples
2017-05-21 10:24:13 -05:00
opilarium
29ffe46d7b Docs link to docs.rs 2017-05-21 02:38:40 +03:00
opilarium
bdae692f3e Cargo.toml badges 2017-05-21 02:21:27 +03:00
Ottavio Hartman
7251e3000b Linkified the crate doc 2017-05-20 18:15:34 -04:00
Ottavio Hartman
328fa85b2b LogLevel and LogLevelFilter doc improvements. 2017-05-20 17:17:08 -04:00
Niv
bd53e89400 Add an error type to FromStr impls 2017-05-20 17:09:22 +00:00
Ottavio Hartman
d363f52c65 Added examples for the macros: debug, error, info, trace, and warn 2017-05-20 11:37:42 -04:00
David Tolnay
6c0840c363 Merge pull request #154 from nivkner/debug-impl
add Debug to LogMetadata and LogRecord
2017-05-20 07:28:11 -07:00
Niv
3cf0356e88 add Debug to LogMetadata and LogRecord 2017-05-20 11:26:58 +03:00
David Tolnay
1e0a7fd37b Merge pull request #153 from omh1280/env_logger_doc
Replaced my_logger with env_logger in docs
2017-05-19 22:36:34 -07:00
Ottavio Hartman
e56d4bd7f7 Clearer comment 2017-05-20 01:29:17 -04:00
Ottavio Hartman
5c6ad56dfd Replaced my_logger with env_logger in docs 2017-05-20 01:15:21 -04:00
David Tolnay
81432f5a49 Merge pull request #152 from omh1280/log_doc
log! macro documentation
2017-05-19 22:12:40 -07:00
Ottavio Hartman
f6167b7841 Added another argument 2017-05-20 00:59:10 -04:00
Ottavio Hartman
e3005bea6d Simple log! example 2017-05-20 00:47:21 -04:00
David Tolnay
eb90d0e2ad Merge pull request #151 from omh1280/impl_traits
Implemented common traits for LogLevel, LogLevelFilter, LogMetadata, …
2017-05-19 18:24:43 -07:00
Ottavio Hartman
b0e3188a2e Implemented common traits for LogLevel, LogLevelFilter, LogMetadata, LogLocation 2017-05-19 20:56:44 -04:00
Steven Fackler
3f9c346fd5 Merge pull request #111 from brson/doc
Minor crate doc tweaks
2017-05-12 18:03:24 -07:00
Brian Anderson
d156eb591e Minor crate doc tweaks 2017-05-12 14:15:55 -07:00
Steven Fackler
cb9fa28812 Merge pull request #110 from frewsxcv/patch-1
Indicate where `LogRecord` is used.
2017-05-08 19:30:27 -07:00
Corey Farwell
5b000ada6e Indicate where LogRecord is used. 2017-05-08 21:27:54 -04:00
Steven Fackler
4195412718 Merge pull request #105 from dbrgn/log-target
Make log target configurable
2017-04-18 10:58:17 +02:00
Danilo Bargen
a16173429d Make log target configurable
Right now `env_logger` always logs to stderr. This might be
undesireable in some cases.

This commit adds a way to configure the log target. It can be set to
stdout if desired.

Note that writing to stdout is implemented with `println!` instead of
`writeln!`, so that the output is properly captured in tests.
2017-03-29 14:54:50 +02:00
Alex Crichton
25e349c738 Bump log to 0.3.7 and env_logger to 0.4.2 0.3.7 env_logger-0.4.2 2017-03-07 20:41:14 -08:00
Alex Crichton
d08adb4b0a Merge pull request #101 from shepmaster/patch-1
Add categories to Cargo.toml
2017-03-07 22:39:42 -06:00
Alex Crichton
aa137f5b9e Merge pull request #104 from alexcrichton/unstable
Add ability to be used in rustc
2017-03-07 22:39:30 -06:00