← Back to list

debug-logger.ts in Flyde codebase.

In this article, we will review debug-logger.ts in Flyde codebase. We will look at:

Ramu Narasinga · 2025-08-09 15:31 · 0 claps · 0.8 min read
#open-source #flyde #debug #nodejs #logger
Open on Medium ↗
Wiki topics: 🌐 · Web Development 🔓 · Open Source

debug-logger.ts in Flyde codebase.

In this article, we will review debug-logger.ts in Flyde codebase. We will look at:

  1. debugLogger function
  2. debug package

debugLogger function

You will find the following code at flyde/core/src/common/debug-logger.ts

import debug from "debug";

const BASE_NS = `flyde`;

const base = debug(BASE_NS);

import type { Debugger as _Debugger } from "debug";

export type DebugLogger = _Debugger;

export const debugLogger = (subNs: string): DebugLogger => {
  return base.extend(subNs);
};

debug is imported and is assigned to base . In the debugLogger function, base is extended with the parameter passed.

debug package

A tiny JavaScript debugging utility modelled after Node.js core’s debugging technique. Works in Node.js and web browsers.

Installation

 npm install debug

Usage

Check out the debug usage in the documentation

About me:

Hey, my name is Ramu Narasinga. I study codebase architecture in large open-source projects.

Email: ramu.narasinga@gmail.com

Want to learn from open-source? Solve challenges inspired by open-source projects.

References:

  1. https://github.com/flydelabs/flyde/blob/main/core/src/common/debug-logger.ts#L11
  2. https://www.npmjs.com/package/debug
  3. https://github.com/flydelabs/flyde/blob/main/core/src/execute/index.ts#L103

메타데이터
post_id
460e905ca2fd
slug
debug-logger-ts-in-flyde-codebase-460e905ca2fd
url
https://medium.com/@ramunarasinga/debug-logger-ts-in-flyde-codebase-460e905ca2fd
canonical_url
https://medium.com/@ramunarasinga/debug-logger-ts-in-flyde-codebase-460e905ca2fd
author_url
https://medium.com/@ramunarasinga
status
ok
fetched_at
2026-06-24 23:31:39