cosmolog
TypeScript icon, indicating that this package has built-in type declarations

1.0.387 • Public • Published

cosmolog

cosmolog — Logging Framework For The Open Source Universe

THIS PROJECT IS STILL IN THE DESIGN PHASE

IDEAS & CONTRIBUTIONS ARE WELCOME

An Open Source Universe Project


Contents

Features ✨

  • Log Levels Planned
  • Custom Formatters Planned
  • Levels Viewable by ENVIRONMENT Planned
  • Integration w/ Solar System Planned
  • Error Logs w/ Stack Traces Planned

Install 🛠

npm install cosmolog

Usage 🔭

Read more about the Design behind cosmolog here.

import { log } from 'cosmolog';
log.format('json');
log.debug('A Debug Log');
// {_level: 'DEBUG', timestamp: '2022-07-29T14:45:48.952Z', message: 'A Debug Log' }
log.info('A Simple Log', { data: 'optionalDataObject' });
// {_level: 'INFO', timestamp: '2022-07-29T14:45:49.952Z', message: 'A Simple Log', meta: { data: 'optionalDataObject' } }
log.error('An Error Happened', new Error('Optional Error Argument'));
// {_level: 'ERROR', timestamp: '2022-07-29T14:45:50.952Z', message: 'An Error Happened', error: { message: 'Optional Error Argument', trace: 'Stack Trace...' } }

Documentation 🛰

cosmolog is under active development, documentation will be added once an initial release is ready.

Contributing 🌎

We would love for you to contribute your ideas, code, & fixes to cosmolog.

We encourage everyone to read our Design Document to learn more about the thought process behind cosmolog.

Also check out the rewards offered for contributing to the Open Source Universe.

License ⚖️

MIT

Package Sidebar

Install

npm i cosmolog

Weekly Downloads

1

Version

1.0.387

License

MIT

Unpacked Size

7.77 kB

Total Files

6

Last publish

Collaborators

  • a-n-u-b-i-s