when i throw an exception, e.g.
throw "TimeOut";
it's always logged as "FATAL" in the script.log collection. is there a way to throw the error such that it's logged as warning or debug? thanks!
Hi Ham,
You can use the following to send a debug or warning level message to script.log from your scripts.
//debug level Spark.log.debug("Debug"); //warning level Spark.log.warn("This is a warning");
Thanks,
Liam
thanks. so i guess if i want to throw something and log it as a warning, i should do a catch and log it with Spark.log.warn(). that will work. thanks!
Hamlet Archer
when i throw an exception, e.g.
it's always logged as "FATAL" in the script.log collection. is there a way to throw the error such that it's logged as warning or debug? thanks!
Hi Ham,
You can use the following to send a debug or warning level message to script.log from your scripts.
Thanks,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Ham,
You can use the following to send a debug or warning level message to script.log from your scripts.
Thanks,
Liam
Hamlet Archer
thanks. so i guess if i want to throw something and log it as a warning, i should do a catch and log it with Spark.log.warn(). that will work. thanks!
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2476 topics