Write to a log from javascript?

Write to a log from javascript?

Anonymous
Not applicable
609 Views
1 Reply
Message 1 of 2

Write to a log from javascript?

Anonymous
Not applicable

Is there a log that scripts can write to?  

 

There's console.log, but as far as I can tell that's only visible in a debug session and it gets wiped between runs.  Any other way to get debug printf output?

 

(I can just write to a file, but as scripts start working together, it'd be nice to have a log framework of some sort)

0 Likes
610 Views
1 Reply
Reply (1)
Message 2 of 2

marshaltu
Autodesk
Autodesk

Hello,

 

Unfortunately we didn't have a log framework for you to write log. Users could define logger by themselves as what they did for some general JS applications. 

 

We provided the method "adsk.writeFile" to help write data to a disk file as users may have no permission to do that by JS codes. Please refer to http://fusion360.autodesk.com/resources and go to "Programming Interface"->"Javascript Specific Issues" for details. 

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes