You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# No logging configuration needed# Logs go to: ~/.local/state/aim/aim.log# Default behavior:# - Level: warn (errors and warnings only)# - Rotation: 10MB max size, keep 3 backups# - Format: text, single line
Log Location by OS
OS
Path
Linux
~/.local/state/aim/aim.log
macOS
~/Library/Application Support/aim/aim.log
Windows
%LOCALAPPDATA%\aim\aim.log
Log Levels
const (
LevelDebug=iota// Detailed troubleshootingLevelInfo// Normal operations (default for --verbose)LevelWarn// Errors and warnings (default)LevelError// Errors onlyLevelSilent// No logging
)
Level Usage
Level
Example
User Sees
Debug
Resolving account: deepseek
Only with --verbose or debug mode
Info
Running claude-code with deepseek
Success messages
Warn
Account glm: key not set, skipping
Warnings
Error
Failed to execute claude: not found
Errors
Log Format
Default (Text)
2024-01-15 10:23:01 WARN Account glm: key not set
2024-01-15 10:23:01 INFO Running claude-code with deepseek
2024-01-15 10:23:01 ERROR Failed to execute claude: exit status 1
version: "2"# Optional: Override defaultslogging:
level: debug # debug, info, warn, error, silentfile: ~/.aim/aim.log # custom pathformat: json # text or jsonrotation:
max_size: 50# MBmax_backups: 10max_age: 90# dayscompress: false# Filter sensitive fields (in addition to defaults)redact:
- CUSTOM_API_KEY
- INTERNAL_TOKEN
CLI Integration
# Override log level for single run
aim run cc -a deepseek --verbose # level: info
aim run cc -a deepseek --debug # level: debug
aim run cc -a deepseek --quiet # level: error# View logs
aim logs # tail -f
aim logs --last 50 # last 50 lines
aim logs --since 1h # last hour
aim logs --level error # errors only# Manage logs
aim logs rotate # force rotation
aim logs clean # remove old files
aim logs path # show log path
Log Contents by Command
aim run
INFO Running <tool> with <account>
DEBUG Resolved vendor: <vendor>
DEBUG Protocol: <protocol> -> <url>
DEBUG Env vars: [list with redaction]
DEBUG Executing: <command> <args>
INFO Command completed: exit code 0
aim config
INFO Config loaded: <path>
DEBUG Parsed accounts: [deepseek, glm, kimi]
WARN Account glm: key not set
aim doctor
INFO Starting diagnostics
DEBUG Checking config file...
DEBUG Checking accounts...
WARN Account kimi: connection timeout
INFO Diagnostics complete: 2 warnings