Socket
Socket
Sign inDemoInstall

cosmolog

Package Overview
Dependencies
0
Maintainers
1
Versions
387
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmolog

Logging Framework For The Open Source Universe


Version published
Maintainers
1
Weekly downloads
1
decreased by-85.71%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 30 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc