# pglogs > Real-time Postgres logs for humans & AI agents. Stream, filter, and understand what your database is doing — directly from pgbot. ## Install ``` curl -fsSL https://pgbot.dev/install.sh | sh ``` ## Usage ``` pgbot logs --follow ``` Streams structured, typed log lines (query, info, warn, error) from Postgres in real time. Output is line-delimited and safe to pipe into other tools or an AI agent's context window. ## Log line format ``` HH:MM:SS.mmm ``` Levels: `query`, `info`, `warn`, `error`. ## Links - Source: https://github.com/pgrundev/pgbot - pgbot: https://pgbot.dev