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

Logging not logging - cannot debug #80

Open
cgdutoit opened this issue Jan 11, 2025 · 1 comment
Open

Logging not logging - cannot debug #80

cgdutoit opened this issue Jan 11, 2025 · 1 comment
Assignees
Labels
triage The issue is awaiting triage

Comments

@cgdutoit
Copy link

In my plugin, I cannot see any of my logging or console output.

I have reviewed this issue: #74

My problem is the same but the solution isn't.

  1. I am able to see log files in the logs directory. They do update with system messages, but NOT my own messages
  2. I can see logs in both the chrome inspector and VS code debug console, they update with system messages but not my own messages

I have tried logging in my plugin in a number of ways:

console.log("my debug info")
steamDeck.logger.debug("debugging")
steamDeck.logger.error("debugging")

I also tried creating a new logger:

const logger = streamDeck.logger.createScope("diy")
logger.setLevel(LogLevel.DEBUG);
logger.debug("test"

In my plugin.ts I have:
streamDeck.logger.setLevel(LogLevel.DEBUG);

The log files/vs code console updates with things like system events and actions:

{"event":"setTitle","context":"e689650cecacc8a2a579ae28d197cd9b","payload":{"title":"7"}}
index.js:202
{"action":"com.ubmm.lightsceneselector.diyselector","context":"e689650cecacc8a2a579ae28d197cd9b","device":"49DE2ABDB6EF0B53B744A8B252ACE117","event":"keyUp","payload":{"coordinates":{"column":3,"row":0},"isInMultiAction":false,"settings":{"DSN":"7"}}}

But for the life of me, none of my debug statements appear.

I've restarted the plugin in terminal, I've restarted the streamdeck, readded the control etc. Nothing. My logs simply don't show up.

Help would be appreciated as it's almost impossible to develop a plugin without being able to debug.

Thanks for any advice

@GeekyEggo GeekyEggo added the triage The issue is awaiting triage label Jan 17, 2025
@ChekTek
Copy link
Member

ChekTek commented Jan 17, 2025

Hi @cgdutoit,

Could you please share any logs that Stream Deck provides? These logs exist in /Users/<USERNAME>/Library/Logs/ElgatoStreamDeck on macOS and C:\Users\<USERNAME>\AppData\Roaming\Elgato\StreamDeck\logs on Windows (file name of StreamDeck<#>.log). This could tell us if the plugin is crashing or give more insight as to what is going on.

Is your plugin open source or could you share your plugin.ts file? I'm not experiencing the issue on my side, so debugging without some more information is difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage The issue is awaiting triage
Projects
None yet
Development

No branches or pull requests

3 participants