# tmuxp.log.LogFormatter.template

- **Module:** tmuxp.log.LogFormatter
- **Package:** tmuxp
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/log.py#L104
- **Page:** https://libtmux.org/en/py/latest/workspace/reference/tmuxp-log-logformatter-template/

```
tmuxp.log.LogFormatter.template(self: logging.Formatter, record: logging.LogRecord, stylized: bool = False, kwargs: t.Any) -> str
```

Return the prefix for the log message. Template for Formatter.

## Parameters

- `self` (logging.Formatter)
- `record` (logging.LogRecord): Object passed from :meth:`logging.Formatter.format`.
- `stylized` (bool)
- `kwargs` (t.Any)

## Returns

str
    Template for logger message.
