Page 1 of 1

Suppress output when using pyluxcore

Posted: Sun May 27, 2018 6:43 pm
by mick
pyluxcore write as lot of information (to stdout?). How can I suppress that logging?

Re: Suppress output when using pyluxcore

Posted: Sun May 27, 2018 6:55 pm
by Dade
mick wrote: Sun May 27, 2018 6:43 pm pyluxcore write as lot of information (to stdout?). How can I suppress that logging?
Yes, the pyluxcore.Init() method takes an optional callback, the default function just print to the stdout:

Code: Select all

def PrintHandler(msg):
  print(msg)
 
pyluxcore.Init(PrintHandler)