⚠ Deprecated: Legacy
Suggested alternative: GCCHigh.Extensions.Logit
Extensions.Logit contains methods to make logging to console, file, EventLog, SharePoint list, and database a breeze.
$ dotnet add package Extensions.LogitThe following classes have been extended:
- System.Logit (added)
with these methods:
Write an Error message to active channels (console, event log, file,
SharePoint list, database) using the System.Logit class.
Gets the current Entry or Executing assembly through reflection.
Get the current computer Fully Qualified Domain Name.
Write an Information message to active channels (console, event log, file),
SharePoint list, database) using the System.Logit class.
Returns a string representing the current local date time stamp to
either just the day or down to the millisecond. Used for creating
unique log file names.
For example:
TimeStamp()
will return
2021-03-01@06.01.02.003
whereas
TimeStamp(true)
will return
2021-03-01
Write a Verbose message to active channels (console, event log, file),
SharePoint list, database) using the System.Logit class.
Write a Warning message to active channels (console, event log, file),
SharePoint list, database) using the System.Logit class.