# nodus.log

> Structured telemetry from inside a container: metrics, RL task outcomes, work units and phases.

Source: https://nodus-platform-site.pages.dev/docs/reference/python/nodus-log/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

<!-- Generated by scripts/gen-reference.mjs from the SDK docstrings (griffe). Do not edit: run make gen. -->

Structured telemetry from inside a container: metrics, RL task outcomes, work units and phases.

## `metrics`

```python
metrics(step: int | None = None, **values: float) -> None
```

Numeric metrics (`loss=0.4`); they appear in `status.progress.metrics` and the console charts.

## `phase`

```python
phase(name: str) -> None
```

## `task`

```python
task(phase: str, task_id: str, outcome: str | None = None, reward: float | None = None, attempt: int = 1, trace: Any = None, kind: str = 'completed') -> None
```

An RL or evaluation task event; `kind="started"` marks the start.

## `task_started`

```python
task_started(phase: str, task_id: str) -> None
```

## `unit`

```python
unit(id: str, ms: float) -> None
```

One finished unit of work and its duration, for per-unit cost and latency.
