Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

cosmolog

Package Overview
Dependencies
0
Maintainers
1
Versions
256
Issues
File Explorer

Advanced tools

cosmolog

Logging Framework For The Open Source Universe

    1.0.256latest
    GitHub

Version published
Maintainers
1
Weekly downloads
1,942
decreased by-27.62%

Weekly downloads

Changelog

Source

v1.0.256

1.0.256 (2023-03-30)

Miscellaneous Chores

  • deps: update dependency tsconfig-paths to v4.2.0 (911a512)

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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