Skip to main content
Participant
Nov 16, 2017 12:40 AM UTC
Answered

HTML Panel and logging

Hi

I want to log some debug messages from the html panel. Is there a way to write to the host application/extension log files?

Anand

This topic is closed to new replies. Start a new post to keep the conversation going.
Trevor:
Trevor:Correct answer
Legend
Nov 16, 2017 6:15 AM UTC

Besides writing your own logger which is pretty simple you can grab many from npm logger, ​winston​, log4js​  to name but a few.

The path to the logs are provided in the manual but your better off by far writing to your own logs than trying to hijack the extensions log files.

1 reply

Trevor:
Trevor:Correct answer
Legend
Nov 16, 2017 6:15 AM UTC

Besides writing your own logger which is pretty simple you can grab many from npm logger, ​winston​, log4js​  to name but a few.

The path to the logs are provided in the manual but your better off by far writing to your own logs than trying to hijack the extensions log files.

Translate