Documentation for logging #199
Labels
a-docs
Relates to the docs package
b-documentation
Improvements or additions to documentation
c-accepted
The issue is ready to be worked on
Description
Since the Question arose a couple of times in the Discord and asked myself the same thing recently, it would be good
to have a short introduction / guide on how to use the build in logger, so the messages get displayed in the UI.
Doesn't have to be long since there is not much to write about, but I think not a lot of people know that you need to use the
useLogger
function to get a reference.Proposed Content
One method of debugging your code or animation flow is using logging messages. For this,
motion-canvas
has its own build-in way to log messages.To get a reference to the
Logger
inmotion-canvas
you can use theuseLogger
function:On this reference, you are then able to call different functions corresponding to the log level you want to log at.
These messages get then displayed in the UI under the
Console
tab on the left side.The text was updated successfully, but these errors were encountered: