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
86
87
88
89
90
91
//! Lightweight verbose-progress helper for timing multi-step operations.
use OnceLock;
use ;
use ;
/// Tracks whether the configured logger is already duplicating log output to
/// the terminal. When it is not, `Verbose` falls back to `eprintln!` so that
/// progress messages are always visible to the user.
static LOGS_TO_TERMINAL: = new;
/// Tell `Verbose` whether log records are already being printed to the terminal.
/// This should be called once by the application after the logger is initialized.
/// Emit a verbose progress message.
///
/// The raw message is written to the log file under the fixed `semquery` target so
/// that it appears as `INFO [semquery] <msg>` rather than exposing the internal
/// `semquery_core::verbose` module path. If the logger is not already duplicating
/// output to the terminal, the message is also prefixed with `[semquery]` and
/// printed to stderr.
/// On/off flag for verbose progress output.
;
/// RAII timer for a single verbose step.