New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logdown

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logdown

Debug utility with markdown support that runs on browser and server

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
157K
increased by10.36%
Maintainers
1
Weekly downloads
 
Created

What is logdown?

Logdown is a JavaScript logging library that provides a simple and colorful way to log messages in the browser console. It supports different log levels, custom prefixes, and styles to make debugging easier and more visually appealing.

What are logdown's main functionalities?

Basic Logging

Logdown allows you to create a logger instance with a custom prefix and log messages to the console.

const logger = require('logdown')('myLogger');
logger.log('This is a log message');

Log Levels

Logdown supports different log levels such as info, warn, and error to categorize the importance of messages.

const logger = require('logdown')('myLogger');
logger.info('This is an info message');
logger.warn('This is a warning message');
logger.error('This is an error message');

Custom Styles

You can customize the appearance of log messages by setting styles such as prefix color and markdown support.

const logger = require('logdown')('myLogger');
logger.state = { prefixColor: 'blue', markdown: false };
logger.log('This is a styled log message');

Grouping Logs

Logdown allows you to group related log messages together, making it easier to organize and read logs.

const logger = require('logdown')('myLogger');
logger.group('Group 1');
logger.log('Message inside group 1');
logger.groupEnd('Group 1');

Other packages similar to logdown

Keywords

FAQs

Package last updated on 15 Mar 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc