22 - Log Section
Overview
Architecture Diagram
┌──────────────────────────────────────────────────────────────────────────────┐
│ Log Section Architecture │
└──────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Log Types │
│ │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ API Logs │ │ Analyzer Logs │ │ Application │ │
│ │ /logs │ │ │ │ Logs │ │
│ │ │ │ │ │ │ │
│ │ - placeorder │ │ - Virtual │ │ - log/*.log │ │
│ │ - cancelorder │ │ orders │ │ - Console │ │
│ │ - modifyorder │ │ - Sandbox │ │ - Rotating │ │
│ │ - Response │ │ trades │ │ │ │
│ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
│ │ │ │ │
│ └────────────────────┼────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Logs Database (logs.db) │ │
│ │ order_logs / analyzer_logs │ │
│ └─────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘Log Types
1. API Order Logs
2. Analyzer Logs
3. Application Logs
Database Schema
order_logs Table
analyzer_logs Table
API Endpoints
Get Order Logs
Parameter
Type
Description
Log Filtering
By API Type
API Type
Description
By Date Range
By Search Term
Async Logging
Non-Blocking Log Writes
Benefits
Log Viewer Features
React Component
Features
File Logging
Configuration
Rotation Settings
Setting
Value
Description
Log Format
Viewing Logs
Via Web UI
Via Command Line
Security Considerations
API Key Redaction
Access Control
Key Files Reference
File
Purpose
Last updated