Metadata-Version: 2.4
Name: loghound
Version: 0.0.1
Summary: Pretty Print Log Visualizer
Author-email: Solveit <nobody@fast.ai>
License: Apache-2.0
Project-URL: Repository, https://github.com/jjmaturino/loghound
Project-URL: Documentation, https://jjmaturino.github.io/loghound/
Keywords: nbdev
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastcore>=1.12.2
Requires-Dist: rich
Requires-Dist: pyyaml
Dynamic: license-file

# loghound


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

This file will become your README and also the index of your
documentation.

## Developer Guide

If you are new to using `nbdev` here are some useful pointers to get you
started.

### Install loghound in Development mode

``` sh
# make sure loghound package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to loghound
$ nbdev_prepare
```

## Usage

### Installation

Install latest from the GitHub
[repository](https://github.com/jjmaturino/loghound):

``` sh
$ pip install git+https://github.com/jjmaturino/loghound.git
```

or from [conda](https://anaconda.org/jjmaturino/loghound)

``` sh
$ conda install -c jjmaturino loghound
```

or from [pypi](https://pypi.org/project/loghound/)

``` sh
$ pip install loghound
```

### Documentation

Documentation can be found hosted on this GitHub
[repository](https://github.com/jjmaturino/loghound)’s
[pages](https://jjmaturino.github.io/loghound/). Additionally you can
find package manager specific guidelines on
[conda](https://anaconda.org/jjmaturino/loghound) and
[pypi](https://pypi.org/project/loghound/) respectively.

## How to use

Fill me in please! Don’t forget code examples:

``` python
1+1
```

    2

``` python
main(config="../example_configs/raft_errors.yaml", logfile="../example_logs/raft.txt", concurrent=True)
```

<pre style="white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace">┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃<span style="font-weight: bold"> time   </span>┃<span style="font-weight: bold"> S0                               </span>┃<span style="font-weight: bold"> S1                               </span>┃<span style="font-weight: bold"> S2                               </span>┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 000000 │ <span style="color: #c0c0c0; text-decoration-color: #c0c0c0">000000::S0::Starting up         </span> │                                  │                                  │
│ 000000 │                                  │ <span style="color: #c0c0c0; text-decoration-color: #c0c0c0">000000::S1::Starting up         </span> │                                  │
│ 000000 │                                  │                                  │ <span style="color: #c0c0c0; text-decoration-color: #c0c0c0">000000::S2::Starting up         </span> │
│ 000001 │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000001::S0::Election timer      </span> │                                  │                                  │
│        │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">started                         </span> │                                  │                                  │
│ 000001 │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000001::S1::Election timer      </span> │                                  │
│        │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">started                         </span> │                                  │
│ 000001 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000001::S2::Election timer      </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">started                         </span> │
│ 000045 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000045::S2::Election timeout    </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">elapsed                         </span> │
│ 000046 │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">000046::S2::Becoming candidate  </span> │
│        │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">for term 1                      </span> │
│ 000047 │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">000047::S2::Requesting vote from</span> │
│        │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">S0                              </span> │
│ 000047 │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">000047::S2::Requesting vote from</span> │
│        │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">S1                              </span> │
│ 000052 │ <span style="color: #008080; text-decoration-color: #008080">000052::S0::Granting vote to S2 </span> │                                  │                                  │
│        │ <span style="color: #008080; text-decoration-color: #008080">for term 1                      </span> │                                  │                                  │
│ 000053 │                                  │ <span style="color: #008080; text-decoration-color: #008080">000053::S1::Granting vote to S2 </span> │                                  │
│        │                                  │ <span style="color: #008080; text-decoration-color: #008080">for term 1                      </span> │                                  │
│ 000054 │                                  │                                  │ <span style="color: #008000; text-decoration-color: #008000; font-weight: bold">000054::S2::Became leader for   </span> │
│        │                                  │                                  │ <span style="color: #008000; text-decoration-color: #008000; font-weight: bold">term 1                          </span> │
│ 000055 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000055::S2::Leader, checking    </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">heartbeats                      </span> │
│ 000056 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000056::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S0             </span> │
│ 000056 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000056::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S1             </span> │
│ 000060 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000060::S0::Received            </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries from S2           </span> │                                  │                                  │
│ 000060 │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000060::S1::Received            </span> │                                  │
│        │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries from S2           </span> │                                  │
│ 000100 │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">000100::S2::Received client     </span> │
│        │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">request: Put(x, 1)              </span> │
│ 000101 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000101::S2::Appended entry at   </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">index 1                         </span> │
│ 000102 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000102::S2::Replicating entry 1 </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">to S0                           </span> │
│ 000102 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000102::S2::Replicating entry 1 </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">to S1                           </span> │
│ 000108 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000108::S0::Accepted entry 1    </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">from S2                         </span> │                                  │                                  │
│ 000109 │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000109::S1::Accepted entry 1    </span> │                                  │
│        │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">from S2                         </span> │                                  │
│ 000110 │                                  │                                  │ <span style="color: #800080; text-decoration-color: #800080; font-weight: bold">000110::S2::Entry 1 committed   </span> │
│        │                                  │                                  │ <span style="color: #800080; text-decoration-color: #800080; font-weight: bold">(majority reached)              </span> │
│ 000111 │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">000111::S2::Applied command     </span> │
│        │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">Put(x, 1)                       </span> │
│ 000155 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000155::S2::Leader, checking    </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">heartbeats                      </span> │
│ 000156 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000156::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S0             </span> │
│ 000156 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000156::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S1             </span> │
│ 000200 │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">000200::S2::Received client     </span> │
│        │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">request: Put(y, 2)              </span> │
│ 000201 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000201::S2::Appended entry at   </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">index 2                         </span> │
│ 000202 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000202::S2::Replicating entry 2 </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">to S0                           </span> │
│ 000202 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000202::S2::Replicating entry 2 </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">to S1                           </span> │
│ 000210 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000210::S0::Accepted entry 2    </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">from S2                         </span> │                                  │                                  │
│ 000212 │                                  │ <span style="color: #800000; text-decoration-color: #800000">000212::S1::Dropped             </span> │                                  │
│        │                                  │ <span style="color: #800000; text-decoration-color: #800000">AppendEntries (simulated network</span> │                                  │
│        │                                  │ <span style="color: #800000; text-decoration-color: #800000">loss)                           </span> │                                  │
│ 000213 │                                  │                                  │ <span style="color: #800080; text-decoration-color: #800080; font-weight: bold">000213::S2::Entry 2 committed   </span> │
│        │                                  │                                  │ <span style="color: #800080; text-decoration-color: #800080; font-weight: bold">(majority reached)              </span> │
│ 000214 │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">000214::S2::Applied command     </span> │
│        │                                  │                                  │ <span style="color: #000080; text-decoration-color: #000080">Put(y, 2)                       </span> │
│ 000255 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000255::S2::Leader, checking    </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">heartbeats                      </span> │
│ 000256 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000256::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S0             </span> │
│ 000256 │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000256::S2::Sending             </span> │
│        │                                  │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S1             </span> │
│ 000260 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000260::S0::Accepted heartbeat  </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">from S2                         </span> │                                  │                                  │
│ 000262 │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000262::S1::Accepted heartbeat  </span> │                                  │
│        │                                  │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">from S2                         </span> │                                  │
│ 000300 │                                  │ <span style="color: #800000; text-decoration-color: #800000; font-weight: bold">000300::S1::Failed to persist   </span> │                                  │
│        │                                  │ <span style="color: #800000; text-decoration-color: #800000; font-weight: bold">state: disk full                </span> │                                  │
│ 000301 │                                  │ <span style="color: #808000; text-decoration-color: #808000">000301::S1::Retrying persist in </span> │                                  │
│        │                                  │ <span style="color: #808000; text-decoration-color: #808000">50ms                            </span> │                                  │
│ 000350 │                                  │ <span style="color: #008000; text-decoration-color: #008000">000350::S1::State persisted     </span> │                                  │
│        │                                  │ <span style="color: #008000; text-decoration-color: #008000">successfully                    </span> │                                  │
│ 000400 │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000400::S2::Leader, checking    </span> │
│        │                                  │                                  │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">heartbeats                      </span> │
│ 000500 │ <span style="color: #800000; text-decoration-color: #800000">000500::S0::Dropped heartbeat   </span> │                                  │                                  │
│        │ <span style="color: #800000; text-decoration-color: #800000">(simulated network loss)        </span> │                                  │                                  │
│ 000501 │                                  │ <span style="color: #800000; text-decoration-color: #800000">000501::S1::Dropped heartbeat   </span> │                                  │
│        │                                  │ <span style="color: #800000; text-decoration-color: #800000">(simulated network loss)        </span> │                                  │
│ 000600 │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000600::S0::Election timeout    </span> │                                  │                                  │
│        │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">elapsed                         </span> │                                  │                                  │
│ 000601 │ <span style="color: #008080; text-decoration-color: #008080">000601::S0::Becoming candidate  </span> │                                  │                                  │
│        │ <span style="color: #008080; text-decoration-color: #008080">for term 2                      </span> │                                  │                                  │
│ 000602 │ <span style="color: #008080; text-decoration-color: #008080">000602::S0::Requesting vote from</span> │                                  │                                  │
│        │ <span style="color: #008080; text-decoration-color: #008080">S1                              </span> │                                  │                                  │
│ 000602 │ <span style="color: #008080; text-decoration-color: #008080">000602::S0::Requesting vote from</span> │                                  │                                  │
│        │ <span style="color: #008080; text-decoration-color: #008080">S2                              </span> │                                  │                                  │
│ 000605 │                                  │                                  │ <span style="color: #800000; text-decoration-color: #800000; font-weight: bold">000605::S2::Stepping down,      </span> │
│        │                                  │                                  │ <span style="color: #800000; text-decoration-color: #800000; font-weight: bold">discovered higher term 2        </span> │
│ 000606 │                                  │ <span style="color: #008080; text-decoration-color: #008080">000606::S1::Granting vote to S0 </span> │                                  │
│        │                                  │ <span style="color: #008080; text-decoration-color: #008080">for term 2                      </span> │                                  │
│ 000607 │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">000607::S2::Granting vote to S0 </span> │
│        │                                  │                                  │ <span style="color: #008080; text-decoration-color: #008080">for term 2                      </span> │
│ 000608 │ <span style="color: #008000; text-decoration-color: #008000; font-weight: bold">000608::S0::Became leader for   </span> │                                  │                                  │
│        │ <span style="color: #008000; text-decoration-color: #008000; font-weight: bold">term 2                          </span> │                                  │                                  │
│ 000609 │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">000609::S0::Leader, checking    </span> │                                  │                                  │
│        │ <span style="color: #7f7f7f; text-decoration-color: #7f7f7f">heartbeats                      </span> │                                  │                                  │
│ 000610 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000610::S0::Sending             </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S1             </span> │                                  │                                  │
│ 000610 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000610::S0::Sending             </span> │                                  │                                  │
│        │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">AppendEntries to S2             </span> │                                  │                                  │
│ 000700 │ <span style="color: #000080; text-decoration-color: #000080">000700::S0::Received client     </span> │                                  │                                  │
│        │ <span style="color: #000080; text-decoration-color: #000080">request: Get(x)                 </span> │                                  │                                  │
│ 000701 │ <span style="color: #dfdfdf; text-decoration-color: #dfdfdf">000701::S0::Reading key x = 1   </span> │                                  │                                  │
│ 000702 │ <span style="color: #000080; text-decoration-color: #000080">000702::S0::Responded to client:</span> │                                  │                                  │
│        │ <span style="color: #000080; text-decoration-color: #000080">x = 1                           </span> │                                  │                                  │
│ 000800 │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">000800::S0::Starting snapshot at</span> │                                  │                                  │
│        │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">index 2                         </span> │                                  │                                  │
│ 000801 │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">000801::S0::Snapshot complete,  </span> │                                  │                                  │
│        │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">128 bytes                       </span> │                                  │                                  │
│ 000802 │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">000802::S0::Sending snapshot to </span> │                                  │                                  │
│        │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">S1                              </span> │                                  │                                  │
│ 000810 │                                  │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">000810::S1::Installed snapshot  </span> │                                  │
│        │                                  │ <span style="color: #808000; text-decoration-color: #808000; font-weight: bold">from S0                         </span> │                                  │
└────────┴──────────────────────────────────┴──────────────────────────────────┴──────────────────────────────────┘
</pre>
