appcore_log/sizes.rs
1// =============================================================================
2// #######
3// ### ### F: sizes.rs
4// ## ## ## ## P: AppCore-Runtime
5// ## ##
6// C: working-tree by dnettoRaw
7// ## ## ## ## U: working-tree by dnettoRaw
8// ########### S: 1.0.2-rc
9// =============================================================================
10
11//! Common binary size limits for file and encrypted log sinks.
12
13/// One mebibyte, suitable for small local or short-lived logs.
14pub const LOG_SIZE_1_MIB: u64 = 1024 * 1024;
15/// Two mebibytes, suitable for small application crash logs.
16pub const LOG_SIZE_2_MIB: u64 = 2 * LOG_SIZE_1_MIB;
17/// Four mebibytes, suitable for modest local application logs.
18pub const LOG_SIZE_4_MIB: u64 = 4 * LOG_SIZE_1_MIB;
19/// Eight mebibytes, suitable for normal rotating application logs.
20pub const LOG_SIZE_8_MIB: u64 = 8 * LOG_SIZE_1_MIB;
21/// Sixteen mebibytes, suitable for moderate operational logs.
22pub const LOG_SIZE_16_MIB: u64 = 16 * LOG_SIZE_1_MIB;
23/// Thirty-two mebibytes, suitable for busier bounded services.
24pub const LOG_SIZE_32_MIB: u64 = 32 * LOG_SIZE_1_MIB;
25/// Sixty-four mebibytes, suitable for high-volume bounded services.
26pub const LOG_SIZE_64_MIB: u64 = 64 * LOG_SIZE_1_MIB;