_satellite.notify
In DTM, this function provided a safe way to send messages to the dev console. In the bad old days, the use of console.log, console.warn, console.info, and console.error could cause problems on certain browsers, so the developers of DTM provided _satellite.notify.
Remedy:
In Launch, _satellite.notifyhas been deprecated. It still exists, but will be sunsetted at some point. It is advised to move to the _satellite.logger functions.
1
//Crusty old DTM way(s) - log
2
_satellite.notify("This is like a console.log");
3
_satellite.notify("This is like a console.log",0);
4
_satellite.notify("This is like a console.log",1);
5
_satellite.notify("This is like a console.log",2);
6
//Shiny new Launch way
7
_satellite.logger.log("This is like a console.log");
8
9
//Crusty old DTM way - info
10
_satellite.notify("This is like a console.info",3);
11
//Shiny new Launch way
12
_satellite.logger.info("This is like a console.info");
13
14
//Crusty old DTM way - warn
15
_satellite.notify("This is like a console.warn",4);
16
//Shiny new Launch way
17
_satellite.logger.warn("This is like a console.warn");
18
19
20
//Crusty old DTM way - error
21
_satellite.notify("This is like a console.error",5);
22
//Shiny new Launch way
23
_satellite.logger.error("This is like a console.error");
24
25
//No way to do this in DTM - debug
26
//Shiny new Launch way - debug
27
_satellite.logger.debug("This is like a console.debug");
28
Copied!
In DTM, _satellite.notify could only take one string argument.
In Launch,_satellite.logger.*can be passed multiple arguments (strings, arrays, objects, etc) just likeconsole.*
Last modified 2yr ago
Copy link