Skip to content

개발/로컬 환경에서만 동작하는 경량 프론트엔드 로거

License

Notifications You must be signed in to change notification settings

junjuny0227/develog

Repository files navigation

develog

npm downloads GitHub repo size npm version License: MIT

A lightweight frontend logger that runs only in local/dev environments

A smart logging library that automatically detects the environment based on the browser's hostname and outputs logs only in development environments.

Documentation

Quick Start

Installation

# npm
npm install develog

# yarn
yarn add develog

# pnpm
pnpm add develog

Basic Usage

import { develog } from 'develog';

develog.log('This log appears only in development environments');
develog.info('Info message');
develog.warn('Warning message');
develog.error('Error message');

Features

  • Automatic Environment Detection - Based on hostname patterns
  • Namespace Support - Separate logs by module
  • Timestamp Support - 4 format options
  • TypeScript Support - Full type safety
  • Zero Dependencies - Lightweight package
  • Production Safe - Automatically disabled in production

Links

License

MIT License - See LICENSE.md

Author

junjuny - @junjuny0227

About

개발/로컬 환경에서만 동작하는 경량 프론트엔드 로거

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published