Comments (2)
The global serilog instance must be available before accessing the common log serilog adapter.
e.g.
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
LogManager.Adapter = new Common.Logging.Serilog.SerilogFactoryAdapter();
ILog log1 = LogManager.GetLogger<SerilogFactoryAdapter>();
log1.Info("{ x: 5, y: 8}");
I'll make some changes to improve this situation.
from common.logging.serilog.
Issue should be fixed in latest version released today. Now the Serilog global instance is Lazy Loaded and will ignore the Serilog "Silent Logger" (which means it's not configured yet).
from common.logging.serilog.
Related Issues (11)
- Common.Logging + Numeric Formating + ElasticSearch Sink => Nummeric fields in Elastic HOT 1
- Numeric strings are not correct formatted HOT 1
- Serilog 2.0 update HOT 2
- Add support for nested contexts HOT 3
- netstandard support HOT 1
- Creating a logger by string name instead of type breaks serilog MinimumLevel.Override HOT 1
- Mismatching depenency version in nuspec file
- Using FormatMessageHandler throws an 'System.FormatException: 'Input string was not in a correct format.''
- Update to Common.Logging 3.0 HOT 2
- Support Global and Thread Scoped Variables in Common.Logger API v3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from common.logging.serilog.