c# - Why create Nlog Logger for every class -


is there other benefit besides being able filter class later?

i'm thinking creating static method in class have 1 instance of logger classes avoid having call

logger = logmanager.getcurrentclasslogger  

for every class.

there no benefits other ability configure , filter log class name. if not rely on having ability, having 1 logger classes valid choice.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -