// set the log handler which by default will use the generic log package func (s *Serializer) SetLogHandler(handler LogHandler) { s.mutex.Lock() C.go_raptor_set_log_handler(s.world, unsafe.Pointer(&handler)) s.mutex.Unlock() }
// set the log handler which by default will use the generic log package func (p *Parser) SetLogHandler(handler LogHandler) { C.go_raptor_set_log_handler(p.world, unsafe.Pointer(&handler)) }