Releases: Tigra-Astronomy/TA.Utilities
2.3.0 ConsoleLoggerService
Adds a simple console logging service that can be used as a default logging back-end to write log entries to the console.
This is particularly useful in console applications. For libraries and most other uses we still recommend the NLog logging service.
Full Changelog: 2.0.0...2.3.0
2.0.0 string extensions
Added some useful string handling extensions: string.Head()
, string..Tail()
, string.RemoveHead()
, string.RemoveTail
, etc. (this is somewhat redundant given the Range
and Index
types and array slicing included in .NET now, but these still have their uses.
Updated dependencies.
Modified the ILog
interface so that the severity methods take some optional parameters:
IFluentLogBuilder Debug(int verbosity = 0, string sourceNameOverride = null);
- Added an optional
verbosity
parameter to the logging severity methods, so you can write:
log.Debug(5).Message("Verbosity 5 debug message").Write();
This can be useful for more granular filtering in logging aggreators such as Seq. - Added an optional
sourceNameOverride
parameter to the logging severity methods so you can override the source name for a single log entry:
log.Debug(sourceNameOverride:"Special Logger").Message("Hello").Write();
This was a breaking interface change that would require refactoring of any log service implementations, hence the major version increment.
What's Changed
- String extensions by @NameOfTheDragon in #3
Full Changelog: v1.3.0...2.0.0
Initial Public Release
This is the first official public release of a curated set of utilities used within Tigra Astronomy.