UNPKG

@blast-shield/logger

Version:
41 lines (31 loc) 1.6 kB
# 📋 @blast-shield/logger > Internal logging utility for the Blast Shield CLI and related packages. <!-- Package Info --> [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://img.shields.io/npm/v/%40blast-shield%2Flogger)](https://www.npmjs.com/package/@blast-shield/logger) <!-- Tech Stack --> [![ESM Ready](https://img.shields.io/badge/ESM-Ready-green)]() [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white)](https://www.typescriptlang.org/) This package provides a consistent logging interface for Blast Shield internal components. It's primarily designed as an internal dependency and not intended for direct use in other projects. ## Usage ```typescript import { logger } from '@blast-shield/logger'; logger.info('This is an informational message'); logger.success('Operation completed successfully'); logger.error(new Error('Something went wrong')); logger.dryRun('Would perform this operation in live mode'); ``` ## Available Log Methods - `logger.info()` - Informational messages - `logger.debug()` - Debug messages - `logger.warn()` - Warning messages - `logger.error()` - Error messages - `logger.success()` - Success messages - `logger.note()` - Notes/memos - `logger.star()` - Important highlighted information - `logger.start()` - Task start - `logger.complete()` - Task completion - `logger.pending()` - Pending tasks - `logger.await()` - Waiting for something - `logger.watch()` - Something being watched - `logger.dryRun()` - Logs with a "DRY RUN" prefix