Search notes:

Stellarium API: core.output

core.output(message) writes message to a file named output.txt in Stellarium's user data directory.
It seems that core.saveOutputAs() flushes the output written so far to the indicated file. However, in my experiments, I found that the path of the indicated file is not respected so that the file ends up in the user data directory as well.
// vi: ft=javascript

core.output('First line');
core.output('Second line');
core.saveOutputAs('c:\\users\\rene\\stellarium.out');
core.output('Third line');
Github repository about-Stellarium, path: /API/core/output.ssc

See also

core.debug()
Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201384, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/core/output(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78