Sage Intacct SDK for .NET
Intacct.SDK.Logging.MessageFormatter Class Reference

Public Member Functions

 MessageFormatter (string formatTemplate=MessageFormatter.Debug)
 MessageFormat constructor More...
 
string Format (HttpRequestMessage request, HttpResponseMessage response, Exception error=null)
 

Static Public Attributes

const string Clf
 Apache Common Log Format. http://httpd.apache.org/docs/2.4/logs.html#common More...
 
const string Debug = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"
 Debug format More...
 
const string Short = "[{ts}] \"{method} {target} HTTP/{version}\" {code}"
 Short format More...
 

Constructor & Destructor Documentation

◆ MessageFormatter()

Intacct.SDK.Logging.MessageFormatter.MessageFormatter ( string  formatTemplate = MessageFormatter.Debug)
inline

MessageFormat constructor

Parameters
formatTemplateLog message format template

Member Function Documentation

◆ Format()

string Intacct.SDK.Logging.MessageFormatter.Format ( HttpRequestMessage  request,
HttpResponseMessage  response,
Exception  error = null 
)
inline

Field Documentation

◆ Clf

const string Intacct.SDK.Logging.MessageFormatter.Clf
static
Initial value:
= "{hostname} {req_header_User-Agent} - [{date_common_log}] "
+ "\"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}"

Apache Common Log Format. http://httpd.apache.org/docs/2.4/logs.html#common

◆ Debug

const string Intacct.SDK.Logging.MessageFormatter.Debug = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"
static

Debug format

◆ Short

const string Intacct.SDK.Logging.MessageFormatter.Short = "[{ts}] \"{method} {target} HTTP/{version}\" {code}"
static

Short format