patak-dev / vite-plugin-terminal

Log in the node terminal from the browser
MIT License
267 stars 17 forks source link

Enhance Logging Flexibility with Custom Logger Support #31

Open nevehallon opened 5 months ago

nevehallon commented 5 months ago

Description

This PR introduces support for a custom logger in addition to the default terminal logger within a logging system, specifically targeting development environments like quasar dev. The customLogger option allows developers to seamlessly integrate their own logging solutions, facilitating a more tailored development experience by enabling custom log handling during the development phase. This is particularly beneficial for projects requiring specific log formats or routing logs to different destinations, which is common in complex development setups.

The addition of a customLogger is motivated by the need to adapt logging practices to diverse development environments without disrupting the core functionality. By leveraging this feature during quasar dev, developers can debug and manage application logs more effectively, aligning with specific project requirements.

Key areas for review:

Before creating the pull request, please make sure you do the following:

Thank you for contributing!