Function
Show a pretty error log message with optional date information
Error message to display
Include or not a timestamp
prettyError("Database connection failed");// Output: ✕ - Database connection failed (in red)prettyError("Critical error", true);// Output: ✕ [30/03/2026 10:30:45] - Critical error (in red with timestamp) Copy
prettyError("Database connection failed");// Output: ✕ - Database connection failed (in red)prettyError("Critical error", true);// Output: ✕ [30/03/2026 10:30:45] - Critical error (in red with timestamp)
Show a pretty error log message with optional date information