# Elastic.Extensions.Logging - customization

**URL:** https://discuss.elastic.co/t/elastic-extensions-logging-customization/362874
**Category:** Elasticsearch
**Created:** [July 10, 2024, 10:56am UTC](https://discuss.elastic.co/t/elastic-extensions-logging-customization/362874 "2024-07-10T10:56:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PCDiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pcdiver/32/135947_2.png) [@PCDiver](https://discuss.elastic.co/u/PCDiver)
#### Post date: [July 10, 2024, 10:56am UTC](https://discuss.elastic.co/t/elastic-extensions-logging-customization/362874/1 "2024-07-10T10:56:31Z")

</div>

Hi all,

I'm working on a .NETlogger that logs directly to Elasticsearch. I looked at the source code for Elastic.Extensions.Logging and I cannot find any "customization" options.

Examples:

1. How can we change the user name? Currently the name is obtained from Thread.CurrentPrincipal?.Identity?.Name. This is not always correct. Sometimes ClaimsPrincipal needs to be used.
2. How can we add other attributes (not via the message template)?

Any information very welcome.

Peter
