Suppress output when using pyluxcore

Use this forum for general user support and related questions.
Post Reply
mick
Posts: 52
Joined: Mon May 21, 2018 7:57 pm

Suppress output when using pyluxcore

Post by mick » Sun May 27, 2018 6:43 pm

pyluxcore write as lot of information (to stdout?). How can I suppress that logging?

User avatar
Dade
Developer
Posts: 1231
Joined: Mon Dec 04, 2017 8:36 pm

Re: Suppress output when using pyluxcore

Post by Dade » Sun May 27, 2018 6:55 pm

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)
Support LuxCoreRender project with salts and bounties

Post Reply