Serilog to LogEntries MachineName and ThreadId are not being logged -


i using serilog log logentries.com when configured serilog send entries enrich machinename , threadid, did not show in logentries entries.

how entry being sent logentries formatted. have manually make them part of format of messages , how done?

it appears logentries processes message text , not properties in serilog entry required add outputtemplate parameter logentries sink statement handle enriched properties use if want them show in serilog furthermore, if want them indexed logentries need format them key value pairs, kvp. did this.

var log = new loggerconfiguration().readfrom.appsettings() .enrich.with(   new machinenameenricher(),   new threadidenricher() ).writeto.logentries(   configurationmanager.appsettings["logentriestoken"],   outputtemplate: "{timestamp:g} [{level}] mx={machinename} (td={threadid}) {message}{newline}{exception}" ).createlogger() 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -