C# Class Kaffeplaneten.DAL.LoggingDAL

Inheritance: ALoggingDAL
Mostra file Open project: chrban/Webapplikasjoner Class Usage Examples

Public Methods

Method Description
createLog ( string type ) : bool
findInDatabaseLog ( string criteria ) : Newtonsoft.Json.Linq.JObject
findInInteractionLog ( string criteria ) : Newtonsoft.Json.Linq.JObject
logToDatabase ( Exception ex ) : bool
logToDatabase ( string message ) : bool
logToUser ( string message, CustomerModel model ) : bool
logToUser ( string message, EmployeeModel model ) : bool
parseLogFile ( string log ) : List
parseToArray ( string log ) : Newtonsoft.Json.Linq.JArray

Method Details

createLog() public method

public createLog ( string type ) : bool
type string
return bool

findInDatabaseLog() public method

public findInDatabaseLog ( string criteria ) : Newtonsoft.Json.Linq.JObject
criteria string
return Newtonsoft.Json.Linq.JObject

findInInteractionLog() public method

public findInInteractionLog ( string criteria ) : Newtonsoft.Json.Linq.JObject
criteria string
return Newtonsoft.Json.Linq.JObject

logToDatabase() public method

public logToDatabase ( Exception ex ) : bool
ex System.Exception
return bool

logToDatabase() public method

public logToDatabase ( string message ) : bool
message string
return bool

logToUser() public method

public logToUser ( string message, CustomerModel model ) : bool
message string
model Kaffeplaneten.Models.CustomerModel
return bool

logToUser() public method

public logToUser ( string message, EmployeeModel model ) : bool
message string
model Kaffeplaneten.Models.EmployeeModel
return bool

parseLogFile() public method

public parseLogFile ( string log ) : List
log string
return List

parseToArray() public method

public parseToArray ( string log ) : Newtonsoft.Json.Linq.JArray
log string
return Newtonsoft.Json.Linq.JArray