Aliyun_Log_Models_LogItem

Aliyun_Log_Models_LogItem used to present a log, it contains log time and multiple key/value pairs to present the log contents.

author

log service dev

package

LOG_PHP_SDK

Methods

Aliyun_Log_Models_LogItem cnostructor

__construct(integer $time = null, array $contents = null) 

Arguments

$time

integer

time of the log item, the default time if the now time.

$contents

array

the data of the log item, including many key/value pairs.

Get log contents

getContents() : array

Response

array

log contents

Get log time

getTime() : integer

Response

integer

log time

Add a key/value pair as log content to the log

pushBack(string $key, string $value) 

Arguments

$key

string

log content key

$value

string

log content value

Set log contents

setContents(array $contents) 

Arguments

$contents

array

log contents

Set log time

setTime(integer $time) 

Arguments

$time

integer

log time

Properties

time of the log item, the default time if the now time.

time : integer
var

time of the log item, the default time if the now time.

Type(s)

integer

the data of the log item, including many key/value pairs.

contents : array
var

the data of the log item, including many key/value pairs.

Type(s)

array