console.log vs Durandal system.log i am trying to understand if they are a like, I believe that they both gives the same output - logs in the console
Am i missing something?
You're right. They give the exact same output except that system.log
can be disabled. It will also work with most if not all browsers.
As mentioned in the documentation for system.log:
Logs data to the console. Pass any number of parameters to be logged. Log output is not processed if the framework is not running in debug mode.
Debug mode is enabled using system.debug.
You can view the source code of system.log on Github.