Giter Site home page Giter Site logo

wyclef-rs's Introduction

Wyclef

Wyclef is a lightweight Compact Log Event Format (CLEF) log parser written in Rust, designed to read the CLEF formatted *.jlog files produced by the app - and work on both Windows, Linux and macOS.

Usage

Wyclef is a CLI tool that takes the path to a log file, with CLEF formatted events, as a single argument.

Windows

Build the project and store the resulting binary somewhere on your computer. You can also store it in a folder that is not part of your PATH, open your terminal and then run it by specifying the full path to the program. Example:

C:\Users\username\Downloads\wyclef.exe somefile.log

Optionally, if you want to be able to run the program from anywhere, then store it in a folder that is part of your PATH - or add the folder to your environment variables as explained in this article.

MacOS and Linux

Build the project and store the resulting binary somewhere in your path, e.g. /usr/local/bin. Then run from your terminal:

wyclef somefile.log

You if you want to store the program somewhere else, then you can add it to your .bashrc or .zshrc file by making an alias:

alias wyclef="/usr/local/bin/wyclef"

or to your PATH by adding the following to your .bashrc or .zshrc file:

export PATH="$PATH:/path/to/wyclef"

Then run the program like described above.

Note on Logging levels

The CLEF spec states that the level property can be both strings and numbers. In order to support coloring of the output, Wyclef currently supports the following case-insensitive strings for levels, or the corresponding number value:

String Level Number Level Color
Verbose 1 White
Debug 2 Cyan
Information 3 Green
Warning 4 Yellow
Error 5 Red
Fatal 6 Red + Bold

wyclef-rs's People

Contributors

jkhoel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.