Skip to content

Change Logger for Node Js and Browser Compatibility#1186

Merged
aidanm3341 merged 5 commits intofinos:mainfrom
Adwoa-Konadu-Appiah:1159
May 13, 2025
Merged

Change Logger for Node Js and Browser Compatibility#1186
aidanm3341 merged 5 commits intofinos:mainfrom
Adwoa-Konadu-Appiah:1159

Conversation

@Adwoa-Konadu-Appiah
Copy link
Member

In reference to #1159, I have updated the logger to use the right logging model for Node.js and browser using the loglevel library.

@rocketstack-matt
Copy link
Member

@Adwoa-Konadu-Appiah please check you have the package-lock file synced.

@aidanm3341 aidanm3341 merged commit edee9cd into finos:main May 13, 2025
12 checks passed
@Adwoa-Konadu-Appiah Adwoa-Konadu-Appiah changed the title Change Logger for Node Js and Browser Compatability Change Logger for Node Js and Browser Compatibility May 14, 2025
* @returns Logger instance
*/
export function initLogger(debug: boolean, label?: string): Logger {
if (loggerInstance) return loggerInstance;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing state means the same format log line is used for all of the cli e.g. 0.7.8 of the cli it seems to be info [_TemplateEngine]:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants