# log_open

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L58
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-log_open/

```c
void log_open(const char *name)
```

## Parameters

- `name` (`const char *`)

## Called by

- [`log_toggle`](/en/tmux/3.2a/reference/c-function-log_toggle/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L82)
- [`proc_start`](/en/tmux/3.2a/reference/c-function-proc_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/proc.c#L186)

## Calls

- [`log_close`](/en/tmux/3.2a/reference/c-function-log_close/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L64)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L66)

## Other function references

- [`log_event_cb`](/en/tmux/3.2a/reference/c-function-log-c-log_event_cb/) (function)

## Referenced by

- [`session_new`](/en/tmux/3.2a/reference/c-function-session_new/) (function)

## Referenced declarations

- [`log_file`](/en/tmux/3.2a/reference/c-variable-log-c-log_file/) (attribute)
- [`log_level`](/en/tmux/3.2a/reference/c-variable-log-c-log_level/) (attribute)
