* initial-content * fix-url-errors * update platform build instructions for environment variable setup * code-review * code-review * naming-and-cleanup * fix-broken-link-for-build * typo-and-confirm-windows-path * local-memory-update * memory-introduction * no-deploy * fix-build-error * title-anchors-correctly * more-overview-and-walkthrough * reorder-pages-fix-link * another-link * Apply suggestions from code review Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com> * page-titles * numbered-list-to-bullets * trailing-spaces --------- Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
1.1 KiB
1.1 KiB
| title | slug |
|---|---|
| Logging options in Langflow | /logging |
Langflow uses the loguru library for logging.
The default log_level is ERROR. Other options are DEBUG, INFO, WARNING, and CRITICAL.
The default logfile is called langflow.log, and its location depends on your operating system.
- Linux/WSL:
\~/.cache/langflow/ - macOS:
/Users/\<username\>/Library/Caches/langflow/ - Windows:
%LOCALAPPDATA%\langflow\langflow\Cache
The LANGFLOW_LOG_ENV controls log output and formatting. The container option outputs serialized JSON to stdout. The container_csv option outputs CSV-formatted plain text to stdout. The default (or not set) logging option outputs prettified output with RichHandler.
To modify Langflow's logging configuration, add them to your .env file and start Langflow.
LANGFLOW_LOG_LEVEL=ERROR
LANGFLOW_LOG_FILE=path/to/logfile.log
LANGFLOW_LOG_ENV=container
To start Langflow with the values from your .env file, start Langflow with uv run langflow run --env-file .env