Logger Stdout Plugin
This plugin is the official standard output plugin for Hyperse Logger , designed specifically for Node.js environments. It outputs logs to the terminal (stdout/stderr) in a consistent, structured format, supporting JSON-compatible output for easy log collection and analysis. Ideal for server-side and containerized applications, it ensures your logs are well-formatted, easy to process, and ready for integration with log management systems.
Installation
npm install @hyperse/logger-plugin-stdout
Usage
// @filename: @hyperse/logger-plugin-stdout/dist/index.d.ts
import {
,
,
} from '@hyperse/logger-plugin-stdout';
import { , } from '@hyperse/logger';
const = ({
: 'hps-logger',
: .,
})
.(())
.();
.('info message');
Output
API
createStdoutPlugin
Parameters:Name | Type | Default |
---|---|---|
options | StdoutOptions Optional configuration options for the plugin. |
StdoutOptions
Last updated on