Logging is useful during Skill development, as well as to help end-users diagnose problems in the future.
To track events and data within your Skill we can use logging. If you are new to programming, this is a way to output a message that can tell you the state of your Skill at a particular point in time, details about an error that has occured, or simply noting that a program reached a particular point in the code.
Video Tutorial: Logging from Mycroft Skills
A logger is available through the MycroftSkill base class. This means that you can use it within a Skill without needing to import the logging package. You can simply call self.log from within the class of your Skill.
Here is a quick example of an INFO level log message used in a Skill. We will learn more about the other levels shortly.