feat(logging): Implement database logging with app_log table
- Created migration to set up app_log table for storing application logs. - Added AppLog entity and repository for ORM handling of logs. - Developed DbLogger service to persist logs of level WARNING and above to the database while maintaining existing logging behavior. - Implemented tests for admin log retrieval and DbLogger functionality to ensure proper logging behavior. - Enhanced logging context sanitization for better error tracking.
This commit is contained in:
@@ -200,6 +200,16 @@ export interface SmsLog {
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface AppLog {
|
||||
id: number;
|
||||
level: string;
|
||||
message: string;
|
||||
context: string | null;
|
||||
channel: string | null;
|
||||
path: string | null;
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface SmsMessageText {
|
||||
tag: string;
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user