logging

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type ReportArgs

type ReportArgs struct {
	Record *ThriftLogRecord `thrift:"record,1" json:"record"`
}

func NewReportArgs

func NewReportArgs() *ReportArgs

func (*ReportArgs) GetRecord

func (p *ReportArgs) GetRecord() *ThriftLogRecord

func (*ReportArgs) IsSetRecord

func (p *ReportArgs) IsSetRecord() bool

func (*ReportArgs) Read

func (p *ReportArgs) Read(iprot thrift.TProtocol) error

func (*ReportArgs) ReadField1

func (p *ReportArgs) ReadField1(iprot thrift.TProtocol) error

func (*ReportArgs) String

func (p *ReportArgs) String() string

func (*ReportArgs) Write

func (p *ReportArgs) Write(oprot thrift.TProtocol) error

type ThriftLogRecord

type ThriftLogRecord struct {
	Name     string `thrift:"name,1" json:"name"`
	Level    int32  `thrift:"level,2" json:"level"`
	PathName string `thrift:"path_name,3" json:"path_name"`
	FileName string `thrift:"file_name,4" json:"file_name"`
	LineNo   int32  `thrift:"line_no,5" json:"line_no"`
	FuncName string `thrift:"func_name,6" json:"func_name"`
	Message  string `thrift:"message,7" json:"message"`
}
var ReportArgs_Record_DEFAULT *ThriftLogRecord

func NewThriftLogRecord

func NewThriftLogRecord() *ThriftLogRecord

func (*ThriftLogRecord) GetFileName

func (p *ThriftLogRecord) GetFileName() string

func (*ThriftLogRecord) GetFuncName

func (p *ThriftLogRecord) GetFuncName() string

func (*ThriftLogRecord) GetLevel

func (p *ThriftLogRecord) GetLevel() int32

func (*ThriftLogRecord) GetLineNo

func (p *ThriftLogRecord) GetLineNo() int32

func (*ThriftLogRecord) GetMessage

func (p *ThriftLogRecord) GetMessage() string

func (*ThriftLogRecord) GetName

func (p *ThriftLogRecord) GetName() string

func (*ThriftLogRecord) GetPathName

func (p *ThriftLogRecord) GetPathName() string

func (*ThriftLogRecord) Read

func (p *ThriftLogRecord) Read(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField1

func (p *ThriftLogRecord) ReadField1(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField2

func (p *ThriftLogRecord) ReadField2(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField3

func (p *ThriftLogRecord) ReadField3(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField4

func (p *ThriftLogRecord) ReadField4(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField5

func (p *ThriftLogRecord) ReadField5(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField6

func (p *ThriftLogRecord) ReadField6(iprot thrift.TProtocol) error

func (*ThriftLogRecord) ReadField7

func (p *ThriftLogRecord) ReadField7(iprot thrift.TProtocol) error

func (*ThriftLogRecord) String

func (p *ThriftLogRecord) String() string

func (*ThriftLogRecord) Write

func (p *ThriftLogRecord) Write(oprot thrift.TProtocol) error

type ThriftLoggingService

type ThriftLoggingService interface {
	// Parameters:
	//  - Record
	Report(record *ThriftLogRecord) (err error)
}

type ThriftLoggingServiceClient

type ThriftLoggingServiceClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewThriftLoggingServiceClientProtocol

func NewThriftLoggingServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ThriftLoggingServiceClient

func (*ThriftLoggingServiceClient) Report

func (p *ThriftLoggingServiceClient) Report(record *ThriftLogRecord) (err error)

Parameters:

  • Record

type ThriftLoggingServiceProcessor

type ThriftLoggingServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewThriftLoggingServiceProcessor

func NewThriftLoggingServiceProcessor(handler ThriftLoggingService) *ThriftLoggingServiceProcessor

func (*ThriftLoggingServiceProcessor) AddToProcessorMap

func (p *ThriftLoggingServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*ThriftLoggingServiceProcessor) GetProcessorFunction

func (p *ThriftLoggingServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*ThriftLoggingServiceProcessor) Process

func (p *ThriftLoggingServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*ThriftLoggingServiceProcessor) ProcessorMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL