简体   繁体   English

5在一个控制台Serilog中记录实例

[英]5 Log instances in one console Serilog

i made a class where i make 5 loggers. 我上了一堂课,做了5位记录员。 Why? 为什么?

Cause every logger is for a different component and logs in a different file. 因为每个记录器都针对不同的组件,并登录不同的文件。 But they also logg all 5 in console and it gives verry strange views 但是他们也将所有5个日志记录在控制台中,并且给出了非常奇怪的视图

this is the code: 这是代码: 码

this is the view that is created after logging a few lines. 这是在记录几行之后创建的视图。 the console is fullscreen. 控制台是全屏的。

控制台视图

As you can see the lines are getting mixed into each other and its messing it big time. 正如您所看到的,线之间相互混合,并浪费大量时间。 Is there a way to fix to problem or am i doing it completly wrong? 有办法解决问题还是我做错了?

It is fixed by adding a theme to the console. 通过将主题添加到控制台来修复该问题。

解

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM