Log Viewer - Copy this React, Tailwind Component to your project
Below is my log database table structure..APILog.init( { request_user: { type: DataTypes.INTEGER, }, response_user: { type: DataTypes.INTEGER, }, log_for: DataTypes.ENUM( 'TRANSACTION', 'RECHARE_REQUEST', 'RECHARGE_RESPONSE', 'RECHARGE_ATTEMPT', 'GST_VERIFY', 'UID_VERIFY', 'BANK_VERIFY', 'OPERATOR_CHECK', 'WHATSAPP_API', 'SMS_API', 'EMAIL_API', 'API' ), transaction_id: { type: DataTypes.STRING, }, request: { type: DataTypes.TEXT, }, response: { type: DataTypes.TEXT, }, status: { type: DataTypes.ENUM('SUCCESS', 'ERROR', 'PENDING'), }, error_message: { type: DataTypes.TEXT, }, duration: { type: DataTypes.INTEGER, }, ip_address: { type: DataTypes.STRING, }, timestamp: { type: DataTypes.DATE, defaultValue: Sequelize.NOW, }, }, { sequelize, modelName: 'APILog', } );
