在线文档教程
PHP

VarnishLog (class)

The VarnishLog class

Introduction

(PECL varnish >= 0.6)

Class synopsis

VarnishLog {

/* Constants */

const integer TAG_Debug = 0 ;

const integer TAG_Error = 1 ;

const integer TAG_CLI = 2 ;

const integer TAG_StatSess = 3 ;

const integer TAG_ReqEnd = 4 ;

const integer TAG_SessionOpen = 5 ;

const integer TAG_SessionClose = 6 ;

const integer TAG_BackendOpen = 7 ;

const integer TAG_BackendXID = 8 ;

const integer TAG_BackendReuse = 9 ;

const integer TAG_BackendClose = 10 ;

const integer TAG_HttpGarbage = 11 ;

const integer TAG_Backend = 12 ;

const integer TAG_Length = 13 ;

const integer TAG_FetchError = 14 ;

const integer TAG_RxRequest = 15 ;

const integer TAG_RxResponse = 16 ;

const integer TAG_RxStatus = 17 ;

const integer TAG_RxURL = 18 ;

const integer TAG_RxProtocol = 19 ;

const integer TAG_RxHeader = 20 ;

const integer TAG_TxRequest = 21 ;

const integer TAG_TxResponse = 22 ;

const integer TAG_TxStatus = 23 ;

const integer TAG_TxURL = 24 ;

const integer TAG_TxProtocol = 25 ;

const integer TAG_TxHeader = 26 ;

const integer TAG_ObjRequest = 27 ;

const integer TAG_ObjResponse = 28 ;

const integer TAG_ObjStatus = 29 ;

const integer TAG_ObjURL = 30 ;

const integer TAG_ObjProtocol = 31 ;

const integer TAG_ObjHeader = 32 ;

const integer TAG_LostHeader = 33 ;

const integer TAG_TTL = 34 ;

const integer TAG_Fetch_Body = 35 ;

const integer TAG_VCL_acl = 36 ;

const integer TAG_VCL_call = 37 ;

const integer TAG_VCL_trace = 38 ;

const integer TAG_VCL_return = 39 ;

const integer TAG_VCL_error = 40 ;

const integer TAG_ReqStart = 41 ;

const integer TAG_Hit = 42 ;

const integer TAG_HitPass = 43 ;

const integer TAG_ExpBan = 44 ;

const integer TAG_ExpKill = 45 ;

const integer TAG_WorkThread = 46 ;

const integer TAG_ESI_xmlerror = 47 ;

const integer TAG_Hash = 48 ;

const integer TAG_Backend_health = 49 ;

const integer TAG_VCL_Log = 50 ;

const integer TAG_Gzip = 51 ;

/* Methods */

public __construct ([ array $args ] )

public array getLine ( void )

public static string getTagName ( int $index )

}

Predefined Constants

VarnishLog::TAG_DebugVarnishLog::TAG_ErrorVarnishLog::TAG_CLIVarnishLog::TAG_StatSessVarnishLog::TAG_ReqEndVarnishLog::TAG_SessionOpenVarnishLog::TAG_SessionCloseVarnishLog::TAG_BackendOpenVarnishLog::TAG_BackendXIDVarnishLog::TAG_BackendReuseVarnishLog::TAG_BackendCloseVarnishLog::TAG_HttpGarbageVarnishLog::TAG_BackendVarnishLog::TAG_LengthVarnishLog::TAG_FetchErrorVarnishLog::TAG_RxRequestVarnishLog::TAG_RxResponseVarnishLog::TAG_RxStatusVarnishLog::TAG_RxURLVarnishLog::TAG_RxProtocolVarnishLog::TAG_RxHeaderVarnishLog::TAG_TxRequestVarnishLog::TAG_TxResponseVarnishLog::TAG_TxStatusVarnishLog::TAG_TxURLVarnishLog::TAG_TxProtocolVarnishLog::TAG_TxHeaderVarnishLog::TAG_ObjRequestVarnishLog::TAG_ObjResponseVarnishLog::TAG_ObjStatusVarnishLog::TAG_ObjURLVarnishLog::TAG_ObjProtocolVarnishLog::TAG_ObjHeaderVarnishLog::TAG_LostHeaderVarnishLog::TAG_TTLVarnishLog::TAG_Fetch_BodyVarnishLog::TAG_VCL_aclVarnishLog::TAG_VCL_callVarnishLog::TAG_VCL_traceVarnishLog::TAG_VCL_returnVarnishLog::TAG_VCL_errorVarnishLog::TAG_ReqStartVarnishLog::TAG_HitVarnishLog::TAG_HitPassVarnishLog::TAG_ExpBanVarnishLog::TAG_ExpKillVarnishLog::TAG_WorkThreadVarnishLog::TAG_ESI_xmlerrorVarnishLog::TAG_HashVarnishLog::TAG_Backend_healthVarnishLog::TAG_VCL_LogVarnishLog::TAG_Gzip

Table of Contents

  • VarnishLog::__construct — Varnishlog constructor

  • VarnishLog::getLine — Get next log line

  • VarnishLog::getTagName — Get the log tag string representation by its index

← VarnishStat::getSnapshot

VarnishLog::__construct →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/class.varnishlog.php