ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Logback​Json​Log​Viewer

Sublime Text plugin for viewing Logback style JSON formatted logs

Labels logback, json, log, logging

Details

Installs

  • Total 278
  • Win 125
  • Mac 125
  • Linux 28
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14
Windows 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 2 0 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 1 0
Mac 0 2 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Log Viewer for Logback Style JSON Formatted Logs

Usage

After loading a JSON formatted file, the right click should display the View Log menu item.

It is possible to show/hide or highlight lines with particular severity. It is also possible to show/hide particular columns.

Lines that are not JSON are displayed as they are.

All log levels are visible and no highlight is applied by default. You can show/hide, add or remove particular columns by editing the LogbackJsonLogViewer.sublime-settings configuration file.

Log Levels

You can toggle log levels using numerical keys:

Key Log Level
1 DEBUG
2 INFO
3 WARN
4 ERROR

Columns

You can toggle pre-defined columns using numerical keys:

Key Column
1 @timestamp
2 severity
3 service
4 trace
5 span
6 thread
7 class
8 msg
9 version

Windows/Linux

  • super + 1..4 - Show or hide the lines with a particular log level (1 - DEBUG, 2 - INFO, 3 - WARN, 4 - ERROR).
  • alt + 1..4 - Toggle highlight for log level.
  • ctrl + 1..9 - Toggle visibility for a particular column.

MacOS

  • ⌘ + 1..4 - Show or hide the lines with a particular log level (1 - DEBUG, 2 - INFO, 3 - WARN, 4 - ERROR).
  • option + 1..4 - Toggle highlight for log level.
  • ctrl + 1..9 - Toggle visibility for a particular column.

Installation

Package Control

  1. Open Package Control: Preferences -> Package Control.
  2. Select Package Control: Install Package.
  3. Type LogbackJsonLogViewer into the search box and select the package to install it.

Manual

Without Git: Download the latest source from GitHub and copy the whole directory into the Packages directory.

With Git: Clone the repository in your Sublime Text directory, located somewhere in the user's Home directory:

`git clone git@github.com:neno--/LogbackJsonLogViewer.git`

The Packages packages directory is located:

  • Windows: %APPDATA%/Sublime Text/Packages/
  • Linux: ~/.Sublime Text/Packages/
  • OS X: ~/Library/Application Support/Sublime Text/Packages/