David Tolnay
d711a6bf48
Release 0.4.5
0.4.5
2018-09-03 08:58:33 -07:00
David Tolnay
9b30cbb010
Merge pull request #292 from dtolnay/private
...
Make private helper macro names less likely to conflict
2018-09-03 08:56:50 -07:00
David Tolnay
da920f8637
Make private helper macro names less likely to conflict
2018-09-03 08:05:47 -07:00
David Tolnay
5602967f47
Release 0.4.4
0.4.4
2018-08-17 07:51:52 -07:00
Alex Crichton
88983eb42a
Merge pull request #288 from dtolnay/local
...
Use local_inner_macros to resolve all local macros within $crate
2018-08-17 07:32:48 -07:00
David Tolnay
11dfde1a29
Use local_inner_macros to resolve all local macros within $crate
...
This fixes the following error when using Rust 2018 style macro imports.
use log::info;
fn main() {
info!("...");
}
error: cannot find macro `log!` in this scope
--> src/main.rs:4:5
|
4 | info!("...");
| ^^^^^^^^^^^^^
The `local_inner_macros` modifier resolves all macro invocations made
from within that macro as macros in the same crate. So if `info!`
expands to an invocation of `log!` then this would be resolved as
`$crate::log!` rather than requiring the caller to have `log` in scope.
The attribute is ignored by pre-2018 compilers so log will continue to
work as normal with #[macro_use].
In the future when dropping compatibility with pre-2018 compilers we can
remove the `local_inner_macros` modifier and use our own explicit
`$crate::` prefixes on invocations of local macros.
2018-08-16 23:55:56 -07:00
Steven Fackler
ea901a1825
Merge pull request #287 from sunfishcode/wait-for-initialized
...
Ensure that initialization is complete after `set_logger_inner`.
2018-08-01 17:19:18 -07:00
Dan Gohman
7e443a0d9d
Remove the call to spin_loop_hint.
...
It isn't available on Rust 1.16.
2018-08-01 13:04:20 -07:00
Dan Gohman
637ae01b62
Ensure that initialization is complete after set_logger_inner.
...
If `set_logger_inner` is called while `STATE` is `INITIALIZING`, make it
wait until the `STATE` is `INITIALIZED` so that callers can assume that
the logging state is fully initialized after a call to
`set_logger_inner`.
2018-08-01 12:38:48 -07:00
Ashley Mannix
7a6028666b
Merge pull request #283 from bcko/patch-1
...
add badges
2018-07-09 15:47:45 +10:00
BC Ko
4543bab22e
add badges
...
add badges for latest version, documentation, license like rand crate (https://crates.io/crates/rand )
2018-07-01 12:16:44 -07:00
Steven Fackler
48bdd56794
Release 0.4.3
0.4.3
2018-06-29 13:00:00 -07:00
Ashley Mannix
e0bdef2721
Merge pull request #280 from golddranks/master
...
Elaborated documentation around log levels.
2018-06-29 08:57:44 +10:00
Pyry Kontio
05ace3b7ec
Updated the log level explanation text
2018-06-28 21:28:32 +09:00
Pyry Kontio
7a9ff7fe12
Elaborated documentation around log levels.
2018-06-18 12:29:22 +03:00
Steven Fackler
1b24f84ba8
Merge pull request #278 from Amanieu/optimize
...
Further optimize code size
2018-06-08 20:04:33 -07:00
Amanieu d'Antras
8d79b7476f
Further improve code size for log macros
2018-06-09 02:51:17 +01:00
Amanieu d'Antras
815e309618
Improve code generation when comparing log levels
2018-06-09 02:26:14 +01:00
Steven Fackler
ffeb0ee505
Release 0.4.2
0.4.2
2018-06-05 19:51:43 -07:00
Steven Fackler
8c767be421
Update changelog
2018-06-05 19:50:58 -07:00
Steven Fackler
b16b5add69
Merge pull request #276 from sfackler/codegen
...
Optimize logging codegen
2018-06-04 22:40:02 -07:00
Ashley Mannix
8fcf3c2971
Merge pull request #274 from cowang4/master
...
Added Crate Feature Flags Documentation
2018-06-04 07:52:26 +10:00
Steven Fackler
8ca698f0a2
Optimize logging codegen
...
The extra work involved in loading the logger and creating the record
struct involves move codegen than is necessary if we take this kind of
approach (which we previously used in 0.3). It's a bit unfortunate to
have these public-but-not-public functions, but I think it's worth it.
We want to minimize the footprint of logging so people feel comfortable
using it!
A main function containing nothing but `warn!("hello world")` shrinks
from 204 bytes to 124 bytes in x86_64 with this change.
Closes #275
2018-06-03 10:58:52 -07:00
Steven Fackler
d66e7d8256
Merge pull request #273 from vorner/shave-yak
...
Shaving mutates the yak
2018-06-03 10:57:30 -07:00
Greg Cowan
dc581888d9
backticks set_boxed_logger
2018-05-30 19:02:29 -04:00
Greg Cowan
24e151edd9
added crate feature flags documentation
2018-05-29 23:18:23 -04:00
Michal 'vorner' Vaner
3ed9a8e3a3
Shaving mutates the yak
2018-05-29 19:53:56 +02:00
Steven Fackler
4af873cab9
Merge pull request #268 from Lukazoid/master
...
Level and LevelFilter can now be deserialized from byte slices
2018-04-08 09:11:59 -07:00
Luke Horsley
3bd1f4e348
Better handling for deserializing invalid slices
2018-04-08 12:18:38 +01:00
Luke Horsley
033e46b1a2
Level and LevelFilter can now be deserialized from byte slices
...
This is required by some deserializers which deserialize identifiers using their binary representation.
This implementation should be equivalent to what serde derive would implement.
2018-04-08 11:59:07 +01:00
Alex Crichton
08d0e4169d
Merge pull request #263 from sfackler/docs-fix
...
Fix max log level documentation
2018-02-10 08:32:54 -06:00
Steven Fackler
bdff1b0fd8
Fix max log level documentation
...
Closes #259
2018-02-09 21:53:51 -08:00
Steven Fackler
b83ca2e713
Merge pull request #262 from dbrgn/patch-1
...
List android_log crate in README
2018-02-07 09:20:22 -08:00
Danilo Bargen
40b84c75ff
List android_log crate in README
2018-02-07 17:43:06 +01:00
Steven Fackler
86641c6eba
Tweak changelog a bit
0.4.1
2017-12-30 15:33:01 -08:00
Steven Fackler
d3eff0a5ea
Merge pull request #253 from MaloJaffre/fix-docs
...
Fix broken links and bump the version to 0.4.1
2017-12-30 15:31:33 -08:00
Malo Jaffré
ebc7f052f4
Fix broken links and bump the version to 0.4.1
...
Unblocks rust-lang/rust#46278 .
2017-12-30 23:46:26 +01:00
Steven Fackler
0867163cda
Merge pull request #251 from alex/patch-1
...
Update the version in the example in the README
2017-12-24 18:18:56 -08:00
Alex Gaynor
bb1748f04f
Update the version in teh example in the README
2017-12-24 18:33:51 -05:00
Steven Fackler
0a3c0adb29
Fix formatting
2017-12-24 15:11:01 -07:00
Steven Fackler
037b87d0a6
Fix links
2017-12-24 15:09:02 -07:00
Steven Fackler
b2adfe0c3d
Add a changelog
2017-12-24 15:07:43 -07:00
Steven Fackler
bf40d1f563
Release 0.4.0
0.4.0
2017-12-24 14:47:34 -07:00
Steven Fackler
5506a625ee
Merge pull request #250 from sfackler/doc-fix
...
Fix a documentation typo
2017-12-24 10:24:30 -08:00
Steven Fackler
0b2a1c102c
Fix a documentation typo
2017-12-24 11:18:53 -07:00
Steven Fackler
113054dba7
Merge pull request #249 from Thomasdezeeuw/patch-1
...
Fix link to MetadataBuilder in RecordBuilder
2017-12-06 09:57:06 -08:00
Thomas de Zeeuw
909d48acd0
Fix link to MetadataBuilder in RecordBuilder
2017-12-06 18:21:15 +01:00
Alex Crichton
db436f36f7
Merge pull request #248 from sfackler/cut-rc.1
...
Bump to 0.4.0-rc.1
0.4.0-rc.1
2017-12-06 00:36:42 -06:00
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