Mark A Johnson
Mark A Johnson

Reputation: 958

NLog list property values on Logger

There is a Logger.SetProperty(string propertyKey, object propertyValue) method. Is there a way to list the properties that have been set on a logger object or see the value of a particular property?

Upvotes: 2

Views: 334

Answers (1)

Julian
Julian

Reputation: 36770

update

This has been added to NLog 4.6.4.

logger.Properties

Original answer

Unfortunately this isn't possible now (NLog 4.6.3)

I've created a feature request and a pull request

Upvotes: 1

Related Questions