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

Plugin logs things to the console which cannot be disabled #1

Open
bjesuiter opened this issue Aug 30, 2023 · 0 comments
Open

Plugin logs things to the console which cannot be disabled #1

bjesuiter opened this issue Aug 30, 2023 · 0 comments

Comments

@bjesuiter
Copy link
Contributor

The default output when using this plugin looks like this:

Watcher File change detected! Restarting!
INFO downloadOpenpropsCss with Version 1.5.15 (latest: 1.5.15)
INFO PostCSS init with OpenProps Version 1.5.15 (latest: 1.5.15)
Prefill Function: Transforming and Caching all css files in 'example/css'
Prefill /Users/bjesuiter/Develop/codemonument/deno_fresh_plugin_skeleton/example/css/global.css
PostCSS Transformed and Cached: /Users/bjesuiter/Develop/codemonument/deno_fresh_plugin_skeleton/example/css/global.css { fileHash: "UaV9l58tqTZe0QgglL/hVvK6lZs9XrJAasRPU9/oS+k=" }
[01_skeleton_plugin] options:  { option1: true, option2: "" }
[01a_skeleton_plugin_w_zod] isProd:  true
[01a_skeleton_plugin_w_zod] typeof isProd:  boolean

 🍋 Fresh ready 
    Local: http://localhost:8000/

DEBUG PostCSS found in cache: example/css/global.css

This is hard to read because the logging of this deno_fresh_openprops plugin interferes with my other skeleton plugin loggins.

=> There should be a way to disable the logs of this plugin!

Ideas

  1. Adding a property to the options of the plugin:
    logsEnabled: z.boolean().optional().default(true),
    => Current Problem: Logs happen at very different parts of the plugin in a disconnected manner.
    => The logging structure has to be refined!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant