# LibTmux.Internal.TmuxCommandContext

- **Module:** LibTmux.Internal
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Diagnostics/TmuxLog.cs#L13
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-tmuxcommandcontext/

Carries the logger a run of tmux commands is recorded through.

Every tmux command a caller makes passes through one dispatcher, so what it
records is decided once here rather than at each of the hundreds of call
sites. Holding the logger alongside the socket it belongs to also keeps two
servers in one process from writing each other's history.

## Members

- `TmuxCommandContext` (method)
- `Logger` (property) — Gets the logger tmux commands are recorded through.
- `Socket` (property) — Gets the socket the commands are sent to, when one is named.
