> ## Documentation Index
> Fetch the complete documentation index at: https://docs-old.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Context.logger

```python theme={"system"}
ExecutionContext.logger: StructuredLogger
```

Structured logger for logs emitted by the currently executing task.

## Methods

```python theme={"system"}
context.logger.debug(message, /, *args, **attributes) -> None
context.logger.info(message, /, *args, **attributes) -> None
context.logger.warning(message, /, *args, **attributes) -> None
context.logger.error(message, /, *args, **attributes) -> None
context.logger.exception(message, /, *args, **attributes) -> None
context.logger.critical(message, /, *args, **attributes) -> None
context.logger.bind(**attributes) -> StructuredLogger
```

Structured attributes are attached to the log record and become searchable telemetry attributes.

```python Python theme={"system"}
from tilebox.workflows import ExecutionContext, Task

class DownloadInput(Task):
    input_id: str

    def execute(self, context: ExecutionContext) -> None:
        context.logger.info("Started", input_id=self.input_id)

        log = context.logger.bind(component="download")
        log.debug("Fetching input")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.