Select to view content in your preferred language

City Engine SDK - Logging

626
2
08-07-2018 08:51 AM
BernhardRainer1
Emerging Contributor

Hello, 

I'm playing around with the SDK to create a custom exporter. I started with the example plugins and they do work.

However, I'm not able to create a functionaing Logger to print to the console/Log window. I'm using the same code as presented in Esri Procedural Runtime: prtx::LogFormatter Class Reference 

auto lh = prt::ConsoleLogHandler::create(prt::ConsoleLogHandler::ALL, prt::ConsoleLogHandler::ALL_COUNT);
prt::addLogHandler(Log);
log_debug("Encoder");

Can anyone point me in the right direction?
Cheers!
0 Kudos
2 Replies
SimonHaegler
Esri Contributor

Hi,

sorry for the very late response. Is this still an issue for you?

In your code snippet, you probably wanted to write prt::addLogHandler(lh), right?

Best,

Simon

0 Kudos
BernhardRainer1
Emerging Contributor

Sorry I haven't logged in into the forum as I found a work-around for my problem. I've got it working for now!

Thanks!

0 Kudos