Skip to content

Releases: Tigra-Astronomy/TA.Utilities

2.3.0 ConsoleLoggerService

01 Dec 14:01
Compare
Choose a tag to compare

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

01 Dec 13:54
Compare
Choose a tag to compare

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

Full Changelog: v1.3.0...2.0.0

Initial Public Release

17 Jul 04:49
Compare
Choose a tag to compare

This is the first official public release of a curated set of utilities used within Tigra Astronomy.