Skip to content

Instantly share code, notes, and snippets.

@chulman444
Created February 20, 2018 03:22
Show Gist options
  • Select an option

  • Save chulman444/73ffd4aa5f9eaccd95b25179bbd260ea to your computer and use it in GitHub Desktop.

Select an option

Save chulman444/73ffd4aa5f9eaccd95b25179bbd260ea to your computer and use it in GitHub Desktop.
After effects script logger. I forget how to use it ... after few months LUL
function LogFile(path) {
this.file = File(path)
}
LogFile.prototype.write = function(line) {
this.file.open('a');
this.file.write(line + "\n");
this.file.close()
}
LogFile.prototype.close = function() {
this.file.close()
}
log = new LogFile("/d/temp/test_file")
// log.write("shit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment