> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.manicule.dev/v2.13.2/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e2b.manicule.dev/v2.13.2/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e2b.manicule.dev/api/mcp.
> Every agent surface: https://e2b.manicule.dev/.well-known/llms-manifest.json

# Template Async Logger (/v2.13.2/template_async-logger)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 352 · updated: 2026-07-30 -->
Related: [Exceptions](/v2.13.2/exceptions.md), [Sandbox Async](/v2.13.2/sandbox_async.md), [Sandbox Sync](/v2.13.2/sandbox_sync.md), [Template](/v2.13.2/template.md), [Template Async](/v2.13.2/template_async.md), [Template Async Readycmd](/v2.13.2/template_async-readycmd.md)

## LogEntry

```python
@dataclass
class LogEntry()
```

Represents a single log entry from the template build process.

## LogEntryStart

```python
@dataclass
class LogEntryStart(LogEntry)
```

Special log entry indicating the start of a build process.

## LogEntryEnd

```python
@dataclass
class LogEntryEnd(LogEntry)
```

Special log entry indicating the end of a build process.

### TIMER_UPDATE_INTERVAL_MS

Default minimum log level to display.

### DEFAULT_LEVEL

Colored labels for each log level.

### levels

Numeric ordering of log levels for comparison (lower = less severe).

### set_interval

```python
def set_interval(func, interval)
```

Returns a stop function that can be called to cancel the interval.

Similar to JavaScript's setInterval.

**Arguments**:

* `func`: Function to execute at each interval
* `interval`: Interval duration in **seconds**

**Returns**:

Stop function that can be called to cancel the interval

### default_build_logger

```python
def default_build_logger(
        min_level: Optional[LogEntryLevel] = None
) -> Callable[[LogEntry], None]
```

Create a default build logger with animated timer display.

**Arguments**:

* `min_level`: Minimum log level to display (default: 'info')

**Returns**:

Logger function that accepts LogEntry instances
Example

```python
from e2b import Template, default_build_logger

template = Template().from_python_image()

```
