# Log

LogService reads the server's log by trace, and the logs of an agent.

`komrad.log.v1.LogService`

-   [`get_log_lines`](https://komrad.dev/latest/api/log/get-log-lines.md)
    
    Read every log line written under one trace id, in order.
    
-   [`list_recent_traces`](https://komrad.dev/latest/api/log/list-recent-traces.md)
    
    List the newest traces in the server log, oldest first.
    
-   [`list_log_sources`](https://komrad.dev/latest/api/log/list-log-sources.md)
    
    List the hook runs and language servers whose logs can be read for one agent.
    
-   [`read_logs`](https://komrad.dev/latest/api/log/read-logs.md)
    
    Read the lines komrad or the CLIs wrote about one agent, one of its hook runs' output, or the log of a language server over its task's checkout.
