Craig's Utility Library
4.0 Beta
|
Outputs messages to a file in ~/App_Data/Logs/ if a web app or ~/Logs/ if windows app with the format Name+DateTime.Now+".log" More...
Public Member Functions | |
DefaultLog (string Name) | |
Constructor More... | |
Public Member Functions inherited from Utilities.IO.Logging.BaseClasses.LogBase< DefaultLog > | |
virtual void | LogMessage (string Message, MessageType Type, params object[] args) |
Logs a message More... | |
override string | ToString () |
String representation of the logger More... | |
Properties | |
string | FileName [get] |
File name More... | |
FileInfo | File [get] |
File object that the log uses More... | |
Properties inherited from Utilities.IO.Logging.BaseClasses.LogBase< DefaultLog > | |
string | Name [get] |
Name of the log More... | |
Action< LogType > | End [get, set] |
Called when the log is "closed" More... | |
Format | FormatMessage [get, set] |
Format message function More... | |
IDictionary< MessageType, Action< string > > | Log [get] |
Called to log the current message More... | |
Action< LogType > | Start [get, set] |
Called when the log is "opened" More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Utilities.IO.Logging.BaseClasses.LogBase< DefaultLog > | |
LogBase (string Name) | |
Constructor More... | |
override void | Dispose (bool Managed) |
Disposes of the objects More... | |
Outputs messages to a file in ~/App_Data/Logs/ if a web app or ~/Logs/ if windows app with the format Name+DateTime.Now+".log"
Definition at line 34 of file DefaultLog.cs.
Utilities.IO.Logging.Default.DefaultLog.DefaultLog | ( | string | Name | ) |
Constructor
Definition at line 39 of file DefaultLog.cs.
|
getprotected |
File object that the log uses
Definition at line 77 of file DefaultLog.cs.
|
get |
File name
Definition at line 61 of file DefaultLog.cs.