1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//! The last access-log lines in memory, and live followers of new ones,
//! for the admin API (18.10.0). Off until [`enable`]: then each batch the
//! access-log sink writes out (every 100 ms, off the request path) is also
//! split into lines here.
use VecDeque;
use ;
use ;
use crate;
/// Lines kept for [`recent`].
pub const CAPACITY: usize = 500;
/// Followers at once; more are refused.
pub const MAX_FOLLOWERS: usize = 8;
/// A longer line is cut to this many bytes (on a character boundary).
pub const MAX_LINE: usize = 8 * 1024;
static ENABLED: AtomicBool = new;
/// Start keeping lines (the admin listener does, at start).
pub
/// Lines the sink wrote out, newline-separated.
pub
/// The last `n` lines, oldest first.
/// Add a follower: `false` when [`MAX_FOLLOWERS`] already follow.