# jeliasson/zsh-logging architecture

> Architecture diagram of the GitHub repository jeliasson/zsh-logging, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jeliasson/zsh-logging
- Repository: https://github.com/jeliasson/zsh-logging

## Overview

zsh-logging is a small zsh logging script. A shell user calls its logging or function-tracing helpers; the script formats messages with timestamps, colors, and indentation, then can send output to the terminal and a log file. The README documents these capabilities, but no source excerpts were provided, so the graph shows only those documented relationships and does not infer internal call structure.

Main entry points: [`includes/logging.sh`](https://github.com/jeliasson/zsh-logging/blob/main/includes/logging.sh) (Logging and tracing)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Shell user"))
node_logging["Logging and tracing<br/>[logging.sh]"]
node_terminal["Terminal output"]
node_logfile["Log file"]

node_user -->|"calls helpers"| node_logging
node_logging -->|"prints messages"| node_terminal
node_logging -->|"pipes output"| node_logfile

click node_logging "https://github.com/jeliasson/zsh-logging/blob/main/includes/logging.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_logging toneTeal
class node_terminal,node_logfile toneIndigo
```

## Components

### Other components

- **Shell user**
- [Logging and tracing](https://github.com/jeliasson/zsh-logging/blob/main/includes/logging.sh): `includes/logging.sh`
- **Terminal output**
- **Log file**

## Connections

- Shell user → Logging and tracing: calls helpers (evidence: `README.md`)
- Logging and tracing → Terminal output: prints messages (evidence: `README.md`)
- Logging and tracing → Log file: pipes output (evidence: `README.md`)
