Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 438 Bytes

File metadata and controls

16 lines (10 loc) · 438 Bytes
title Log

It is not recommended to use the vanila window.console.log() function to output JavaScript logging information.

The core/log module offers different levels of log output that is governed by Moodle's debugging levels.

import Log from 'core/log';

Log.info("Info class log statement");

Log.debug("Debugging information, only appears when DEBUG mode is DEBUG_DEVELOPER");