# log_once

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/utils/log_once)

Log a message at the specified level, but only once.

## Signature

```python
log_once(
    level: int,
    message: str,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/791701a304a72495d108669ef11c194983fd0e95/python/langsmith/utils.py#L199)