# log_toggle

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

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

## Parameters

- `name` (`const char *`)

## Called by

- [`proc_toggle_log`](/en/tmux/3.2a/reference/c-function-proc_toggle_log/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/proc.c#L350)

## Calls

- [`log_close`](/en/tmux/3.2a/reference/c-function-log_close/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L87)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L83)
- [`log_open`](/en/tmux/3.2a/reference/c-function-log_open/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/log.c#L82)

## Referenced by

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

## Referenced declarations

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