Метод | Описание | |
---|---|---|
ClearLog ( ) : void |
Clears a log
|
|
DefaultLogger ( IRepository |
Ctor
|
|
DeleteLog ( Log log ) : void |
Deletes a log item
|
|
GetAllLogs ( System.DateTime fromUtc, System.DateTime toUtc, string message, LogLevel logLevel, int pageIndex, int pageSize ) : IPagedList |
Gets all log items
|
|
GetLogById ( int logId ) : Log |
Gets a log item
|
|
GetLogByIds ( int logIds ) : IList |
Get log items by identifiers
|
|
InsertLog ( LogLevel logLevel, string shortMessage, string fullMessage = "", |
Inserts a log item
|
|
IsEnabled ( LogLevel level ) : bool |
Determines whether a log level is enabled
|
public DefaultLogger ( IRepository |
||
logRepository | IRepository |
Log repository |
webHelper | IWebHelper | Web helper |
dbContext | IDbContext | DB context |
dataProvider | IDataProvider | WeData provider |
commonSettings | Common settings | |
Результат | System |
public GetAllLogs ( System.DateTime fromUtc, System.DateTime toUtc, string message, LogLevel logLevel, int pageIndex, int pageSize ) : IPagedList |
||
fromUtc | System.DateTime | Log item creation from; null to load all records |
toUtc | System.DateTime | Log item creation to; null to load all records |
message | string | Message |
logLevel | LogLevel | Log level; null to load all records |
pageIndex | int | Page index |
pageSize | int | Page size |
Результат | IPagedList |
public GetLogById ( int logId ) : Log | ||
logId | int | Log item identifier |
Результат | Log |
public GetLogByIds ( int logIds ) : IList |
||
logIds | int | Log item identifiers |
Результат | IList |
public InsertLog ( LogLevel logLevel, string shortMessage, string fullMessage = "", |
||
logLevel | LogLevel | Log level |
shortMessage | string | The short message |
fullMessage | string | The full message |
customer | The customer to associate log record with | |
Результат | Log |
public IsEnabled ( LogLevel level ) : bool | ||
level | LogLevel | Log level |
Результат | bool |