Class AppLogs
Application logs.
Inherited Members
Namespace: EduCATS.Helpers.Logs
Assembly: EduCATS.dll
Syntax
public static class AppLogs
Fields
FileManager
File manager interface implementation.
Declaration
public static IFileManager FileManager
Field Value
Type | Description |
---|---|
IFileManager |
Properties
LogsFilePath
Logs file path.
Declaration
public static string LogsFilePath { get; }
Property Value
Type | Description |
---|---|
string |
Methods
DeleteLog()
Delete logs file.
Declaration
public static void DeleteLog()
Initialize(string)
Initialize application logs class.
Declaration
public static void Initialize(string directoryForLogs)
Parameters
Type | Name | Description |
---|---|---|
string | directoryForLogs |
Log(Exception, string)
Log exception.
Declaration
public static void Log(Exception ex, string caller = "")
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | Exception. |
string | caller | Used to get method caller (use |
ReadLog()
Get logs file contents.
Declaration
public static string ReadLog()
Returns
Type | Description |
---|---|
string | Logs contents. |