New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tc-libs/debugger

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tc-libs/debugger

Layer di logging/debug operativo basato su `winston`, separato dal package `@tc-libs/logger`.

latest
npmnpm
Version
3.9.0
Version published
Weekly downloads
52
108%
Maintainers
1
Weekly downloads
 
Created
Source

@tc-libs/debugger

Layer di logging/debug operativo basato su winston, separato dal package @tc-libs/logger.

Questo package e orientato soprattutto a:

  • log applicativi generici
  • log HTTP strutturati
  • output su console, file e Telegram

Registrazione

DebuggerModule.register(
  {
    system: {
      writeIntoConsole: true,
      writeIntoTelegram: false,
      writeIntoFile: true,
      maxSize: '10M',
      maxFiles: '14d',
    },
    telegram: {
      chatId: process.env.DEBUG_TELEGRAM_CHAT_ID!,
      apiToken: process.env.DEBUG_TELEGRAM_BOT_TOKEN!,
    },
  },
  true,
);

Servizio

DebuggerService espone:

  • info, debug, warn, error
  • infoHttp, debugHttp, warnHttp, errorHttp

Esempio:

this.debuggerService.info('Cache warmed', { keys: 12 });

Per HTTP:

this.debuggerService.errorHttp(requestId, {
  description: 'Unhandled exception',
  class: 'UserController',
  function: 'create',
  path: '/api/v1/users',
  data: payload,
}, error);

Differenza rispetto a @tc-libs/logger

  • logger: factory di logger contestuali, piu semplice
  • debugger: pipeline piu strutturata con output multipli e metodi HTTP dedicati

Sviluppo

nx build debugger
nx test debugger

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts