Documentation ¶
Index ¶
- type IN_pitlog_base
- type Log_model
- type Pit_json_message
- type Pitlog_base
- func (DI *Pitlog_base) Api_log_middleware(ech *echo.Echo, sensitive []string)
- func (DI *Pitlog_base) Make_log_object(request_id string, status int, title string, object interface{})
- func (DI *Pitlog_base) Make_log_object_from_string(request_id string, status int, title string, object interface{})
- func (DI *Pitlog_base) Make_log_string(request_id string, status int, title string, message string)
- func (DI *Pitlog_base) Make_log_string_from_object(request_id string, status int, title string, message string)
- type Request_detail
- type Request_logger
- type Response_detail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IN_pitlog_base ¶
type IN_pitlog_base interface { Api_log_middleware(ech *echo.Echo, sensitive []string) Make_log_string(request_id string, status int, title string, message string) Make_log_string_from_object(request_id string, status int, title string, message string) Make_log_object(request_id string, status int, title string, object interface{}) Make_log_object_from_string(request_id string, status int, title string, object interface{}) }
func New_pitlog ¶
func New_pitlog(app_name, app_version, app_level, log_dir, enable_log_console, use_separate string) (IN_pitlog_base, error)
type Pit_json_message ¶
type Pitlog_base ¶
type Pitlog_base struct {
// contains filtered or unexported fields
}
func (*Pitlog_base) Api_log_middleware ¶
func (DI *Pitlog_base) Api_log_middleware(ech *echo.Echo, sensitive []string)
func (*Pitlog_base) Make_log_object ¶
func (DI *Pitlog_base) Make_log_object(request_id string, status int, title string, object interface{})
func (*Pitlog_base) Make_log_object_from_string ¶ added in v1.0.2
func (DI *Pitlog_base) Make_log_object_from_string(request_id string, status int, title string, object interface{})
func (*Pitlog_base) Make_log_string ¶
func (DI *Pitlog_base) Make_log_string(request_id string, status int, title string, message string)
func (*Pitlog_base) Make_log_string_from_object ¶ added in v1.0.2
func (DI *Pitlog_base) Make_log_string_from_object(request_id string, status int, title string, message string)
type Request_detail ¶
type Request_detail struct { Url string `json:"url"` Method string `json:"method"` Request_id string `json:"request_id"` Request_date string `json:"request_date"` Ip string `json:"ip"` Api_type string `json:"api_type"` Channel string `json:"channel"` Timezone string `json:"timezone"` Bytes_in string `json:"bytes_in"` App_level string `json:"App_level"` App_version string `json:"App_version"` }
type Request_logger ¶
type Request_logger struct { Request_id string `json:"requestID,omitempty"` Payload interface{} `json:"payload,omitempty"` }
type Response_detail ¶
Click to show internal directories.
Click to hide internal directories.