Overview
Thelog command displays the contents of the Datoso log file. This is useful for debugging issues, reviewing operation history, and troubleshooting problems with seeds or DAT processing.
Usage
Description
The log command outputs the entire contents of the Datoso log file to the console. The log file contains:- Fetch operations and download status
- DAT processing steps and results
- Error messages and stack traces
- Configuration changes
- Seed operations
Log File Location
By default, the log file is located at:datoso.config file:
DatosoPath configuration setting.
Enabling Logging
Logging is not enabled by default. To enable logging, you must configure it in yourdatoso.config file:
Log Levels
Available log levels (from most to least verbose):- DEBUG - Detailed information for diagnosing problems
- INFO - Confirmation that things are working as expected
- WARNING - An indication that something unexpected happened
- ERROR - A serious problem that prevented an operation from completing
Examples
View Current Log
View Log with Less (Paginated)
For large log files, pipe toless for easier navigation:
Search Log for Errors
Save Log to File
View Last 50 Lines
Verbose Mode
For real-time verbose output during operations, use the--verbose flag with any command:
Troubleshooting
Log File Not Found
If you see an error that the log file doesn’t exist:- Enable logging in your configuration:
- Run a command to generate log entries: