signale icon indicating copy to clipboard operation
signale copied to clipboard

Doesn't loo like expected, at least inside clusters

Open rubenOrtz opened this issue 1 year ago • 0 comments

Describe the bug When i use a extended class for Signale export default class Logger extends Signale { constructor(config: any, client?: any) { super({ config, logLevel: 'info', types: { startUp: { badge: '✔', color: 'green', label: 'Inicio', logLevel: 'info', }, log: { badge: '👍', color: 'white', label: 'Info', logLevel: 'info', }, It works fine, when i call the class from a normal file inside my project (for example, the manager, as you see in the image) const logger = new Logger({ displayTimestamp: true, displayDate: true, }); But when i call the exact same Logger, as the manager, but inside a cluster using Node.js worker threads didnt look as good as it looks in the manager (check the image)

To Reproduce Create a worker thread create a file with a extended Signale as above create a logger inside and outside the worker and call both, you will see the difference

Technical Info (please complete the following information)

  • OS: Ubuntu 22.04 (Windows WSL)
  • Signale Version: 1.4.0
  • Node.js Version: v19.0.1

image

rubenOrtz avatar Dec 17 '22 21:12 rubenOrtz