Questions tagged [liblog]

7 questions
6
votes
2 answers

LibLog - Asserting calls to the logger

When using LibLog, is it possible to assert calls to the logger? Given the wiki lists the following example for usage: public class MyClass { private static readonly ILog Logger = LogProvider.For(); } Here the logger is an…
Hux
  • 3,102
  • 1
  • 26
  • 33
4
votes
1 answer

Contextual Logging within LibLog

In Serilog I can push multiple properties to log with following code. I am doing this in a middleware to push properties from context. How can I do this using LibLog? using (LogContext.PushProperties( new…
Shetty
  • 1,792
  • 4
  • 22
  • 38
2
votes
1 answer

How can I use LibLog with a custom Serilog LoggerConfiguration?

The default provider for Serilog in LibLog is SerilogLogProvider. This provider will use the static entry point Serilog.Log to log entries. How can I use a custom Serilog ILogger with LibLog? I could write a new log provider for LibLog but want to…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
1
vote
0 answers

Liblog adapter for wix custom action

Currently I am logging Wix Custom Action log messages to a file using Session.Log(). My application uses Liblog with Serilog for logging. Is there a way to have an adapter class for Liblog that writes log messages to Custom Action Session? The…
Kannan D
  • 467
  • 1
  • 4
  • 15
1
vote
1 answer

Simple Injector register LibLog

I am using the excellent LibLog code for abstracting logger implementation in my application. I am also using Simple Injector as my DI container. I would like to inject an instance of logger in my classes which corresponds to the following static…
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
0
votes
1 answer

Liblog .NetStandard 2.0

I recently used Liblog solution in my project to get logging abstraction. Everything is working fine but i have one small question. My project is .Net Standard 2.0, hence i defined a compiler symbol "LIBLOG_PORTABLE" After adding this, i am not able…
K D
  • 5,889
  • 1
  • 23
  • 35
0
votes
2 answers

How to enable logging for Redlock.Net?

I am using redlock library from below location. https://github.com/samcook/RedLock.net Below command returns with timeout only on production and it works on other environments. RedLockFactory.Create Using ILSpy i can see they have logged some…
Ashif Nataliya
  • 912
  • 2
  • 13
  • 28