logger-global
v1.1.0
Published
Global Lightweight logger for Node, browser, and modern JavaScript/TypeScript frameworks (Vue, React, Angular, etc) featuring emojis, theme detection, timestamps, caller tracing, and automatic mute mode in production
Downloads
19
Maintainers
Readme
logger-global v1.1.0
Global lightweight logger for Node, browser, and modern JavaScript/TypeScript frameworks (Vue, React, Angular, etc), featuring emojis, theme detection, timestamps, caller tracing, and automatic mute mode in production. Supports multiple arguments and complex data types.
Features
- Universal - Works in Node.js and all modern browsers
- Framework-ready: Vue, React, Angular, etc.
- Multiple arguments support: Log several values in one call.
- Complex data types: Full support for objects, arrays, functions, dates, errors, Map, Set, BigInt, Symbol, and circular references.
- One-time import - Import once, use everywhere globally
- Global availability - No need for imports in every file
- Configurable Log Levels - debug, info, warn, error, mute
- Beautiful Output - Emojis, colorful and well-formatted logs
- Theme detection - Colorful adaptable to theme light/dark
- Timestamps and source tracing included
- Improved formatting: Each argument appears on a separate line for clarity.
- Environment Aware - Different behaviors for development/production
- Production control: Easily enable/disable logs in production.
- Zero Dependencies - Ultra-lightweight and fast
- Well Tested - Comprehensive test suite
Installation
npm install logger-global
# or
yarn add logger-global
# or
pnpm add logger-globalQuick Usage
// Import once in your main file
import logger from 'logger-global'
// Use anywhere in your app without additional imports
logger.debug('What is happening?')
logger.info('Hello, world!')
logger.warn('This is a warning')
logger.error('Something went wrong')Visual Output Examples
Light Theme
Node

Browser

Dark Theme
Node

Browser

New in v1.1.0


Documentation
For full features, advanced usage, and examples, see the GitHub README.
License
MIT © 2025 VoroDeveloper
This project is licensed under the MIT License – see the LICENSE file for details.
Show your support
This logger is free and open source.
I hope you find this logger useful!
Contributions, issues and feature requests are welcome!
If you end up using it in your project, a mention would be appreciated — and suggestions or improvements are always welcome.
Reporting Issues
Feel free to open an issue or submit a pull request if you have ideas, bugs, or feature requests.
Please use the GitHub Issues page to report bugs or request features.
How Support
- ⭐ Star this repository - Increases its visibility and helps others find it
- 🐛 Report bugs - Contributes to improving the quality of the project for everyone
- 💡 Suggest features - Your input can shape the future of the logger
- 📢 Share with colleagues - Helps grow our community
- 📝 Write a review - Share your experience
Author
VoroDeveloper
Full-Stack Developer
Last updated: September 2025
