Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use mermaid instead of SVG for diagram #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,36 @@

[![codecov.io](http://codecov.io/github/oxinabox/LoggingExtras.jl/coverage.svg?branch=master)](http://codecov.io/github/oxinabox/LoggingExtras.jl?branch=master)

![Diagram showing how loggers connect](diag.svg)
```mermaid
flowchart LR

info("@"info)-->TeeLogger1(Tee<br>Logger)
warn("@"warn)-->TeeLogger1(Tee<br>Logger)
error("@"error)-->TeeLogger1(Tee<br>Logger)
debug("@"debug)-->TeeLogger1(Tee<br>Logger)
TeeLogger1:::teeloger -----> ConsoleLogger(Console<br>Logger)
TeeLogger1:::teeloger --> FilteredLogger(Filtered<br>Logger)
FilteredLogger:::filteredlogger --> TeeLogger2(Tee<br>Logger)
TeeLogger2:::teeloger --> FilteredLogger3(Filtered<br>Logger)
TeeLogger2:::teeloger --> FilteredLogger4(Filtered<br>Logger)
TeeLogger2:::teeloger --> FilteredLogger5(Filtered<br>Logger)
FilteredLogger3:::filteredlogger --> FileLogger1(File<br>Logger)
FilteredLogger4:::filteredlogger --> FileLogger2(File<br>Logger)
FilteredLogger5:::filteredlogger --> FileLogger3(File<br>Logger)


style info stroke:#0000ff,stroke-width:2px
style warn stroke:#f66,stroke-width:2px
style error stroke:#ff0000,stroke-width:2px
style debug stroke:#3cb371,stroke-width:2px
style ConsoleLogger stroke:#ffa500,stroke-width:2px
classDef teeloger stroke:#6a5acd,stroke-width:2px
classDef filteredlogger stroke:#0000ff,stroke-width:2px
classDef filelogger stroke:#3cb371,stroke-width:2px
style FileLogger1 stroke:#3cb371,stroke-width:2px
style FileLogger2 stroke:#f66,stroke-width:2px
style FileLogger3 stroke:#D8BFD8,stroke-width:2px
```

# Discussion: Compositional Loggers

Expand Down