Log to Nlog console

Log to Nlog console

MGO-Norsyn
Advocate Advocate
522 Views
1 Reply
Message 1 of 2

Log to Nlog console

MGO-Norsyn
Advocate
Advocate

Does anyone know how to make Nlog console logging work with Revit?

I can make it work with a file target, but if I setup a target for console nothing happens.

I was thinking about the fancy log console that pyRevit has, but I cannot find any guides on how to implement console logging in Revit using Nlog.

0 Likes
523 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

The pyRevit code is open source.

 

The RevitPythonShell also has a nice console similar to what you describe, also open source.

 

Basically, you simply open a modeless window and write text to it from your add-in.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes