Logger
in package
Table of Contents
Properties
- $destinationPath : string
- $json : stdClass
Methods
- addMessage() : mixed
- メッセージを追加
- addPercentage() : mixed
- addProcessLog() : mixed
- error() : mixed
- エラー処理
- getDestinationPath() : string
- Getter $destinationPath
- getJson() : stdClass
- Get json object
- getPercentage() : int
- init() : mixed
- 初期化
- isProcessing() : bool
- 処理中か判定
- load() : mixed
- ファイルからロード
- setDestinationPath() : mixed
- Setter $destinationPath
- success() : mixed
- 成功時
- terminate() : mixed
- 終了処理
- build() : mixed
- JSON出力
Properties
$destinationPath
protected
string
$destinationPath
= ''
$json
protected
stdClass
$json
Methods
addMessage()
メッセージを追加
public
addMessage(string $message[, int $percentage = 0 ][, int $status = 1 ][, bool $log = true ]) : mixed
Parameters
- $message : string
- $percentage : int = 0
- $status : int = 1
- $log : bool = true
addPercentage()
public
addPercentage([int $percentage = 0 ]) : mixed
Parameters
- $percentage : int = 0
addProcessLog()
public
addProcessLog(mixed $message[, mixed $status = 1 ]) : mixed
Parameters
- $message : mixed
- $status : mixed = 1
error()
エラー処理
public
error(mixed $message) : mixed
Parameters
- $message : mixed
getDestinationPath()
Getter $destinationPath
public
getDestinationPath() : string
Return values
stringgetJson()
Get json object
public
getJson() : stdClass
Return values
stdClassgetPercentage()
public
getPercentage() : int
Return values
intinit()
初期化
public
init() : mixed
isProcessing()
処理中か判定
public
isProcessing() : bool
Return values
boolload()
ファイルからロード
public
load() : mixed
setDestinationPath()
Setter $destinationPath
public
setDestinationPath(string $path) : mixed
Parameters
- $path : string
success()
成功時
public
success() : mixed
terminate()
終了処理
public
terminate() : mixed
build()
JSON出力
protected
build() : mixed