adams85 / filelogger

A lightweight yet feature-rich file logger implementation for the Microsoft.Extensions.Logging framework.
MIT License
147 stars 22 forks source link

SingleLine support #14

Closed woutervanranst closed 3 years ago

woutervanranst commented 3 years ago

Is there an easy way to do SingleLine logging (ie the scope and the log entry are on one line), like SimpleConsole and Serilog do?

adams85 commented 3 years ago

The format of the output is fully customizable by means of IFileLogEntryTextBuilder. See, for example, this issue.

If you mean by 'easy way' an easier way than this, that's not possible currently.

adams85 commented 3 years ago

I put together a full code sample for you. Does this produce the output you have on your mind?

woutervanranst commented 3 years ago

Thanks @adams85 -- this is EXACTLY what i was looking for!! (apologies for the delay in my response)