@blast-shield/logger
Version:
Logger utility for blast-shield
41 lines (31 loc) • 1.6 kB
Markdown
# 📋 @blast-shield/logger
> Internal logging utility for the Blast Shield CLI and related packages.
<!-- Package Info -->
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/@blast-shield/logger)
<!-- Tech Stack -->
[]()
[](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