File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " android_logger"
3
- version = " 0.8.0 "
3
+ version = " 0.8.1 "
4
4
authors = [" The android_logger Developers" ]
5
5
license = " MIT OR Apache-2.0"
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ this library:
12
12
13
13
``` toml
14
14
[target .'cfg(target_os = "android")' .dependencies ]
15
- android_logger = " 0.7 "
15
+ android_logger = " 0.8.1 "
16
16
```
17
17
18
18
Example of initialization on activity creation, with log filters:
@@ -30,7 +30,7 @@ fn native_activity_create() {
30
30
. with_min_level (Level :: Trace ) // limit log level
31
31
. with_allowed_module_path (" hello::crate" ), // limit messages to specific crate
32
32
Some (" mytag" ) // logs will show under mytag tag. If `None`, the crate name will be used
33
- );
33
+ );
34
34
35
35
trace! (" this is a verbose {}" , " message" );
36
36
error! (" this is printed by default" );
@@ -51,7 +51,7 @@ fn native_activity_create() {
51
51
}
52
52
```
53
53
54
- There is a caveat that this library can only be initialized once
54
+ There is a caveat that this library can only be initialized once
55
55
(hence the ` init_once ` function name). However, Android native activity can be
56
56
re-created every time the screen is rotated, resulting in multiple initialization calls.
57
57
Therefore this library will only log a warning for subsequent ` init_once ` calls.
You can’t perform that action at this time.
0 commit comments