Closed stvhwrd closed 5 years ago
Since every log is tied to a transaction number and a command, should probably maintain one ~global~ appropriately scoped commonlib.LogCommandParameters
instance per request
Sorry I'm a bit unsured why should we keep track of LogCommandParameters per request? Isn't the webserver done with LogCommandParameters after it has sent off a message to logging server? Also afaik the workload generator currently does not send the transactionNumber to webserver. I need to enable that at some point, right?
No need to enable that - the HTTP server now assigns transactionNum as the requests come in. We'll need to modify the parameters downstream to ensure that transactionNum propagates
HTTP Server will contribute four logs:
DebugType
int
// UNIX timestampstring
// name of server eg. "Transaction Server"int
// enumeration of transactionstring
// one of the known commands ("BUY", "SELL" etc)string
// optional alphanumeric usernamestring
// optional three-char alphanumeric stock symbol ("NWC", "BTK")string
// optional name of file to be written todecimal
// optional dollars and cents (eg 24.99)string
// optional debug message or descriptionErrorEventType
int
// UNIX timestampstring
// name of server eg. "Transaction Server"int
// enumeration of transactionstring
// one of the known commands ("BUY", "SELL" etc)string
// optional alphanumeric usernamestring
// optional three-char alphanumeric stock symbol ("NWC", "BTK")string
// optional name of file to be written todecimal
// optional dollars and cents (eg 24.99)string
// optional error message or descriptionSystemEventType
int
// UNIX timestampstring
// name of server eg. "Transaction Server"int
// enumeration of transactionstring
// one of the known commands ("BUY", "SELL" etc)string
// optional alphanumeric usernamestring
// optional three-char alphanumeric stock symbol ("NWC", "BTK")string
// optional name of file to be written todecimal
// optional dollars and cents (eg 24.99)UserCommandType
int
// UNIX timestampstring
// name of server eg. "Transaction Server"int
// enumeration of transactionstring
// one of the known commands ("BUY", "SELL" etc)string
// optional alphanumeric usernamestring
// optional three-char alphanumeric stock symbol ("NWC", "BTK")string
// optional name of file to be written todecimal
// optional dollars and cents (eg 24.99)