Thread: Avisynth+
View Single Post
Old 20th July 2016, 21:11   #2125  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by ultim View Post
Avs+ received a logging facility. You can enable it using SetLogParams(target, level) at the beginning of your script. 'target' can be either "stderr", "stdout", or a path to a file. Level is LOGLEVEL_ERROR/WARNING/INFO/DEBUG (not strings), with increasing verbosity. Log messages can be output by scripts using LogMsg(msg, level). I went for Log() initially but it was already taken by the math function.
Just tried the SetLogParams(target, level) function, very cool:


However, I had to use "SetLogParams("stdout", 4), "LOGLEVEL_DEBUG" was not recognised.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline