Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: [Feature] #264

Closed
FreePhoenix888 opened this issue Sep 16, 2023 · 4 comments
Closed

Feature Request: [Feature] #264

FreePhoenix888 opened this issue Sep 16, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@FreePhoenix888
Copy link

FreePhoenix888 commented Sep 16, 2023

Description / Use Case for a Feature

Add possibility to extend name.

I wanted to use this library instead of debug library which can extend namespaces. For some reason there is no such possibility. Why?

@FreePhoenix888 FreePhoenix888 added the enhancement New feature or request label Sep 16, 2023
@terehov
Copy link
Contributor

terehov commented Sep 16, 2023

Can you elaborate what you exactly mean? Thank you

@FreePhoenix888
Copy link
Author

Can you elaborate what you exactly mean? Thank you

What I can do when I use debug library:

import _debug from debug
const debug = _debug("myPackageName")
const moduleDebug = debug.extend("myModuleName")
const moduleLog = debug.extend('log')
const moduleError = debug.extend('error')

@terehov
Copy link
Contributor

terehov commented Sep 16, 2023

You can already do this with https://tslog.js.org/#/?id=sub-logger

@terehov terehov closed this as completed Sep 16, 2023
@FreePhoenix888
Copy link
Author

Thank you, @terehov !

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants