Logging System
DPULSE includes a comprehensive logging system that records all events and errors during program execution. Logs are essential for debugging, troubleshooting issues and reporting bugs.
General Information
| Property | Value |
|---|---|
| Filename | journal.log |
| Location | DPULSE root directory |
| Format | Plain text |
| Created | Automatically on first launch |
| Rotation | â Automatic log rotation |
| Append only | â Log is never overwritten, only extended |
đĄ Log file does not contain any sensitive information, passwords or API keys. You can safely attach it to bug reports and GitHub issues.
Log Levels
DPULSE uses standard Python logging levels. You can change active log level in configuration file.
| Level | Icon | Severity | Description | When to use |
|---|---|---|---|---|
DEBUG |
đ | 10 | Most detailed output. Records every action, request, response and internal program state. | Only when reporting a bug or troubleshooting problems. |
INFO |
âšī¸ | 20 | Confirmation that things are working as expected. Records all major stages of scan. | â Default recommended value for normal use. |
WARNING |
â ī¸ | 30 | Indication of something unexpected happened, but program can continue working. | For normal operation. |
ERROR |
â | 40 | Serious problem occurred, some function could not be completed. | Always enabled. |
CRITICAL |
đĨ | 50 | Fatal error, program may be unable to continue running. | Always enabled. |
You can change log level in configuration file:
[LOGGING] log_level = infoSee Configuration File for instructions.
Log Format
Every log entry follows standard format:
YYYY-MM-DD HH:MM:SS,mmm LEVEL Process: Message
| Part | Description |
|---|---|
YYYY-MM-DD |
Date of event |
HH:MM:SS,mmm |
Time with millisecond precision |
LEVEL |
Log level of this entry |
Process |
Module or function that generated the entry |
Message |
Event description or error text |
Log Structure
Log file is automatically separated between scans with clear markers:
==================== SCAN STARTS HERE ====================
[ all log entries for this scan ]
==================== SCAN ENDS HERE ======================
This makes it very easy to find logs for specific scan even if you ran hundreds of scans before.
Example Log Content
Recommendations
| Scenario | Recommended log level |
|---|---|
| Normal daily use | info |
| Dorking not working | warning |
| Unexpected behaviour | debug |
| Reporting a bug on GitHub | debug |
| Production use | error |
Important Notes
- â Never set log level to
criticalfor normal use â you will miss important warnings - â Do not leave log level on
debugpermanently. It will generate very large log files and slightly reduce performance - â
If you are reporting an issue, always reproduce it with
log_level = debugand attach full log file to the issue