Skip to content

yammm/ynode-ylog

Repository files navigation

@ynode/ylog

Copyright (c) 2025 Michael Welter me@mikinho.com

npm version license

Helper module for outputting colored info, warn, error, debug and trace/verbose log messages. Works with Fastify or standalone Node.js application.

Installation

npm install @ynode/ylog

Basic Usage

import ylog from "@ynode/ylog";
const log = ylog(import.meta);

log.info(`[${process.pid}] Hello`);
log.warn(`[${process.pid}] Hello`);
log.error(`[${process.pid}] Hello`);
const fastify = Fastify({ loggerInstance: log });
fastify.log.info(`Worker ${process.pid} shutting down due to inactivity.`);

License

MIT

About

Helper module for outputting colored info, warn, error, debug and trace/verbose log messages. Works with Fastify or standalone.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors