一键导入
serverpod-logging
Serverpod logging — session.log, log levels, persistence, retention, console output. Use when adding logging or debugging server calls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Serverpod logging — session.log, log levels, persistence, retention, console output. Use when adding logging or debugging server calls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | serverpod-logging |
| description | Serverpod logging — session.log, log levels, persistence, retention, console output. Use when adding logging or debugging server calls. |
Use session.log() during a request. Logs flush when the session closes. Stored in DB and/or printed to console.
session.log('Operation completed');
session.log('Something went wrong',
level: LogLevel.warning,
exception: e,
stackTrace: stackTrace);
Uncaught endpoint exceptions are logged as session failures in serverpod_session_log.
serverpod_log, serverpod_query_log, serverpod_session_log (when persistent enabled)text or json)Defaults: with database configured, persistent on + console off; without database, persistent off + console on.
Under sessionLogs: in config YAML or env vars:
| Setting | Env var | Default |
|---|---|---|
| persistentEnabled | SERVERPOD_SESSION_PERSISTENT_LOG_ENABLED | true (with DB) |
| consoleEnabled | SERVERPOD_SESSION_CONSOLE_LOG_ENABLED | false (with DB) |
| consoleLogFormat | SERVERPOD_SESSION_CONSOLE_LOG_FORMAT | text |
| cleanupInterval | SERVERPOD_SESSION_LOG_CLEANUP_INTERVAL | 24h |
| retentionPeriod | SERVERPOD_SESSION_LOG_RETENTION_PERIOD | 90d |
| retentionCount | SERVERPOD_SESSION_LOG_RETENTION_COUNT | — |
Set retention so log tables don't grow unbounded. Avoid logging sensitive data.
Companion app for viewing, searching, and filtering logs and inspecting failed/slow calls. Automatically available when using Serverpod Cloud.
Add Serverpod authentication — serverpod_auth_idp packages, initializeAuthServices, identity providers (Email, Google, Apple, etc.), Flutter sign-in UI, migrations. Use when adding authentication or a new social sign-in to a Serverpod project.
Serverpod caching — local and Redis caches, cache keys, lifetime, CacheMissHandler. Use when caching data, optimizing queries, or working with session.caches.
Serverpod CLI — serverpod create, generate, create-migration, and other commands. Use when generating code, creating migrations, or creating projects/modules.
Configure Serverpod — YAML config, environment variables, passwords, run modes, generator.yaml, TLS. Use when setting up environments, API/database/Redis settings, or managing secrets.
Serverpod ORM with PostgreSQL — CRUD, filters, sorting, pagination, relations, migrations, transactions, raw SQL. Use when querying the database, writing migrations, or working with relations. Also include serverpod-models skill if you need to change models.
Define Serverpod endpoints, use Session, pass parameters, and call from client. Use when creating RPC endpoints, working with Session, or client code generation.