Add tracing-appender for improved logging with daily rotation.

This commit is contained in:
Greg Burri 2025-04-12 17:27:03 +02:00
parent 9b51998889
commit aebca7a7e2
5 changed files with 74 additions and 47 deletions

View file

@ -18,6 +18,9 @@ pub const DB_FILENAME: &str = "recipes.sqlite";
/// Path to the SQL file which contains the initial database schema.
pub const SQL_FILENAME: &str = "sql/version_{VERSION}.sql";
/// Base name for the log files, the date and the extension will be appended to it.
pub const BASE_LOG_FILENAME: &str = "recipes";
/// When a new user sign up, he has this duration to validate his account.
pub const VALIDATION_TOKEN_DURATION: i64 = 60 * 60; // [s]. (1 jour).