Closed normanhh3 closed 7 years ago
I think this is a great idea!
Although i think you mean PascalCase
instead of camelCase
I'm wondering if i can make this configurable since style is always a highly discussed topic 😄 .
All of the Serilog examples use PascalCase
too 👍 - I've seen other schemes used in the wild though. For some, it's a matter of matching the log format from other systems that might be written in e.g. JavaScript, where norms are different.
Yes, apparently I had a moment there.
It might best be something done via opt-in configuration.
On Mar 30, 2017 4:14 PM, "Nicholas Blumhardt" notifications@github.com wrote:
All of the Serilog examples use PascalCase too 👍 - I've seen other schemes used in the wild though. For some, it's a matter of matching the log format from other systems that might be written in e.g. JavaScript, where norms are different.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Suchiman/SerilogAnalyzer/issues/16#issuecomment-290531357, or mute the thread https://github.com/notifications/unsubscribe-auth/ABj7xDAC1TvAC3Z7mIVSRKuXrquwG7MTks5rrA0qgaJpZM4MuvDl .
I've made a start on this here
https://github.com/Suchiman/SerilogAnalyzer/pull/21
There is a passing test and the analyser is written, need to handle configuration, I've made it a warning for now
Yeah the "configuration" part is tricky...
.ruleset
file.Ok, the analyzer and code fix is done and is in the PR, just need to work out how to do config
Wow that is great!
Thanks to @MrKevHunter this is fixed with #21 👍 Configurability is currently only given through the default configuration options you have so far:
Serilog006
" which disables the warning in the build and IntelliSense
Hi Folks,
I'm currently using Serilog and love it. My team is new to the tool and I'm looking for ways to ensure logging standards and compliance. This one looks like a great start.
We have settled on a standard of property names are in CamelCase.
Is this something that fits within the scheme of constraints you envision for this tool?