Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This documentation is split into two sections depending on your role:
|---|---|
| [Tutorial](./tutorial.md) | Get a working logger running from scratch |
| [Concepts & explanation](./explanation.md) | Understand how Python logging and daqpytools work |
| [Severity levels](./severitylevels.md) | Quick reference for `DEBUG`, `INFO`, `WARNING`, `ERROR`, and `CRITICAL` |
| [How to use handlers and filters](./how-to/use-handlers.md) | Descriptions and examples for each handler and filter |
| [How to route messages](./how-to/route-messages.md) | Direct records to specific handlers using HandlerType and LogHandlerConf |
| [How to add handlers at runtime](./how-to/add-handlers-at-runtime.md) | Attach handlers after logger creation; pass kwargs |
Expand Down
17 changes: 17 additions & 0 deletions docs/severitylevels.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Severity levels

Logging messages are grouped by severity so you can decide what should be shown, routed, or ignored.
The names below match the standard Python logging levels used by daqpytools.

## Overview

| Level | Typical meaning | When to use it | Example |
|---|---|---|---|
| `DEBUG` | The most detailed diagnostic output. | Use when you need to trace control flow, inspect state, or confirm that everything is wired correctly. Useful for troubleshooting. | A health check is running and you want to confirm the retry behavior. `Health check: attempt 5 at 4s elapsed.` |
| `INFO` | Normal progress information. | Use for messages that help a user understand what command or service is doing without adding noise. | A process manager has started and you want to report normal progress. `Starting process manager for the session.` |
| `WARNING` | Something unexpected happened, but execution can continue. | Use when a fallback is taken, input looks suspicious, or behavior is not ideal but still recoverable. | A command still works, but the old name is being phased out. `Retract partition is deprecated. Please use retract-session instead.` |
| `ERROR` | A problem occurred that must be fixed for the current operation to succeed. | Use when a command failed, a configuration is invalid, or a required dependency is missing. | A log lookup failed because the requested process does not exist. `Bad query for logs: The process corresponding to the query doesn't exist.` |
| `CRITICAL` | An unrecoverable failure. | Use when the process or running instance cannot continue safely. | A dataflow application has hit a fatal fault and stopped running. `Dataflow application segfaulted; process terminated.` |


For more information on how these are used in logging, see the [concepts and explanation page](./explanation.md).
1 change: 1 addition & 0 deletions docs_dev/readme_toplevel.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Furthermore, a separate API reference set that includes Auto-generated kwargs, t
|---|---|
| [Tutorial](./user/tutorial.md) | Get a working logger running from scratch |
| [Concepts & explanation](./user/explanation.md) | Understand how Python logging and daqpytools work |
| [Severity levels](./user/severitylevels.md) | Quick reference for `DEBUG`, `INFO`, `WARNING`, `ERROR`, and `CRITICAL` |
| [How to use handlers and filters](./user/how-to/use-handlers.md) | Descriptions and examples for each handler and filter |
| [How to route messages](./user/how-to/route-messages.md) | Direct records to specific handlers using HandlerType and LogHandlerConf |
| [How to add handlers at runtime](./user/how-to/add-handlers-at-runtime.md) | Attach handlers after logger creation; pass kwargs |
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ nav:
- User Documentation:
- Tutorial: user/tutorial.md
- Concepts & explanation: user/explanation.md
- Severity levels: user/severitylevels.md
- How-to:
- Use handlers and filters: user/how-to/use-handlers.md
- Route messages: user/how-to/route-messages.md
Expand Down
Loading