npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@imqa/custom-log

v0.0.2

Published

[![NPM Published Version][npm-version-img]][npm-url] [![NPM Last Update][npm-last-update-img]][npm-url] [![NPM Unpacked Size][npm-unpacked-size-img]][npm-url] [![NPM Downloads][npm-downloads-img]][npm-url] [![NPM Type Definitions][npm-types-img]][npm-url]

Readme

@imqa/custom-log

NPM Published Version NPM Last Update NPM Unpacked Size NPM Downloads NPM Type Definitions License

개요

@imqa/custom-log은 IMQA 모니터링 시스템에서 브라우저 console 로그를 캡처하고 보고합니다. OpenTelemetry 형식으로 로그를 기록하며, recordLog 함수를 통해 로그 메시지와 속성을 스팬 및 로그로 남깁니다. 개발자가 프로덕션 환경에서 애플리케이션의 동작을 모니터링하고 디버깅할 수 있도록 합니다.

주요 함수: recordLog

import { recordLog } from '@imqa/custom-log';

recordLog('로그 메시지', { customKey: 'customValue' });

함수 설명

recordLog(message, attributes?, hint?)

  • message: string 또는 객체. 로그로 남길 메시지.
  • attributes: 로그에 추가할 커스텀 속성(선택).
  • hint: 트레이서, 로거, 화면 이름 옵션 등(선택).

기록되는 주요 속성

| 속성 | 타입 | 설명 | |-----------|------|-------------| | component | string | 로그 컴포넌트 이름 (log) | | span.type | string | 스팬 타입 (log) | | level | string | 로그 레벨 (info) | | message | string | 로그 메시지 내용 | | session.id | string | 사용자 세션 식별자 | | screen.name | string | 화면/페이지 이름 | | screen.type | string | 화면/페이지 타입 (page) | | 기타 커스텀 속성 | string | attributes로 전달된 값 |

옵션(hint)

  • tracer: OpenTelemetry Tracer 객체(기본값 사용 가능)
  • logger: OpenTelemetry Logger 객체(선택)
  • screenNameOption: 화면 이름 옵션(선택)

예시

recordLog({ event: 'login', user: 'test' }, { env: 'prod' }, {
  tracer: customTracer,
  logger: customLogger,
  screenNameOption: { screenNameType: 'routeOnly', urlWithSearchParams: true }
});

라이센스

Copyright (c) 2024-2025 ONYCOM CO., LTD. All rights reserved.