UNPKG

@loglayer/transport-pretty-terminal

Version:

Interactive pretty log output in the terminal for the LogLayer logging library.

31 lines (19 loc) 1.69 kB
# Pretty Terminal Transport for LogLayer [![NPM Version](https://img.shields.io/npm/v/%40loglayer%2Ftransport-pretty-terminal)](https://www.npmjs.com/package/@loglayer/transport-pretty-terminal) [![NPM Downloads](https://img.shields.io/npm/dm/%40loglayer%2Ftransport-pretty-terminal)](https://www.npmjs.com/package/@loglayer/transport-pretty-terminal) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) A transport for the [LogLayer](https://loglayer.dev) logging library that pretty-prints logs printed in the terminal. ![Pretty Terminal Transport](https://loglayer.dev/images/pretty-terminal/pretty-terminal-short-v2.gif) ## Features - 🎨 **Color-coded Log Levels** - Each log level has distinct colors for quick visual identification - 🔍 **Interactive Selection Mode** - Browse and inspect logs in a full-screen interactive view - 📝 **Detailed Log Inspection** - Examine individual log entries with formatted data and context - 🔎 **Search/Filter Functionality** - Find specific logs with powerful filtering capabilities - 💅 **JSON Pretty Printing** - Beautifully formatted structured data with syntax highlighting - 🎭 **Configurable Themes** - Choose from pre-built themes or customize your own colors ## Next.js / browser support The Pretty Terminal does not work in a browser or Next.js as Pretty Terminal has dependencies that are incompatible with in a Next.js environment. Use [Simple Pretty terminal](https://loglayer.dev/transports/simple-pretty-terminal) instead. ## Installation Visit the [Pretty Terminal docs](https://loglayer.dev/transports/pretty-terminal) for installation and usage.