Introduction to Logging
It's helpful to understand the fundamental concepts of logging in the development of gSharp modules. Logging is a crucial aspect of module development that allows developers to track the behavior of their modules, diagnose issues, and understand the flow of execution.
These are the basic principles of logging in a gSharp module:
- Writing Log Entries – How to write log entries from a module.
- Log Levels – The different log levels available in gSharp and when to use each level.
- Log Context – How to include additional context in your log entries to provide more information about the state of the application when the log was created.
- Structured Logging – How to log data in a structured format to make it easier to analyze and query logs.
- Core Properties – The properties of log entries that gSharp will automatically attach to your log entries.
- Best Practices – Guidelines for writing effective and useful log entries.