Method | Description | |
---|---|---|
FlatFileLogProvider ( ) : System |
Initializes a new instance of the FlatFileLogProvider class with no argument. Note that the logfile path should be mentioned in web.config file key="FlatFileLogPath" before initializing the object.
|
|
Log ( |
Log the exception messages with frames on the call stack at the time the current exception was thrown.
|
|
Log ( |
Log the error message as per the specified log level.
|
|
Log ( string message, IUser user ) : void |
Log the specified error messages with current date.
|
Method | Description | |
---|---|---|
GetDateForFilename ( ) : string |
Provides a string with current date in the format yyyyMMdd. Used to create the file name with current date.
|
|
GetDateForMessage ( ) : string |
Provides a string having current date in a format yyyy-MM-dd HH:mm:ss. Use the current date time for writing message in log file.
|
|
IsAllowed ( |
Checks a given log level with configuartion loglevel.
|
|
OpenWriter ( ) : |
Creates a System.IO.StreamWriter that appends or create UTF-8 encoded text to an existing or newly created file respectively.
|
public Log ( |
||
exception | The exception of |
|
user | IUser | The Adf.Core.IDomainObject object - not in use. |
return | void |
public Log ( |
||
level | The Adf.Core.LogLevel that defines the comparison with configuration loglevel. | |
message | string | The error messages which will logged. |
user | IUser | The Adf.Core.IDomainObject object - not in use. |
return | void |
public Log ( string message, IUser user ) : void | ||
message | string | The error messages which will logged. |
user | IUser | The Adf.Core.IDomainObject object - not in use. |
return | void |