Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including journally with all npm packages installed. Try it out:

var journally = require("journally")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

journally v1.1.0

A journalctl wrapper for nice colors and filters

journally

journally in urxvt Logging a Windows 10 virtual machine startup

A simple wrapper around journalctl for realtime monitoring with colors and filtering.

Install :

npm i journally -g

Usage :

Usage:
  journally [OPTIONS] [MATCHES]

journally supports all of the flags and arguments from journalctl! (Thanks to @gerrard00)

Reference the options in the journalctl man page or with journally --help.

Configuration

You can configure journally with different colors and formats with the ~/.journallyrc file:

{
  "filters": [
    //If this value is the same as journalctl's SYSLOG_IDENTIFIER, the entry is ignored.
    "annoyingprogram"
  ],
  //Customisable output!
  "output": "{__realtime_timestamp.blue} {|.yellow} {syslog_identifier.green} {says.yellow} {message.green}"
  //Use JSON properties found in the journalctl json output and custom ones for stuff like 'says' or a '|' seperator.
  //To add some color with your desired color with a dot in front.
}

journalctl's JSON documentation can be found here or check the reference.json file in the package/repo for an example of the returned JSON object by journalctl.

Contributing

If you want to add a feature to the project, feel free to either create an issue or to clone the repository and submit a pull request!

All help is welcome!

LICENSE

Check out the LICENSE file for more information.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free