We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c683ab2 + ee9b1f1 commit a676d9bCopy full SHA for a676d9b
docs/guides/javascript/modules/log.md
@@ -0,0 +1,16 @@
1
+---
2
+title: Log
3
4
+
5
+It is not recommended to use the vanila `window.console.log()` function to output Javascript logging information.
6
7
+The `core/log` module offers different levels of log output that is governed by Moodle's debugging levels.
8
9
+```js title="Example use of logging"
10
+import Log from 'core/log';
11
12
+Log.info("Info class log statement");
13
14
+Log.debug("Debugging information, only appears when DEBUG mode is DEBUG_DEVELOPER");
15
16
+```
0 commit comments