Logger
in package
Table of Contents
Properties
- $destinationPath : string
- $json : stdClass
Methods
- __construct() : mixed
- Logger constructor.
- addMessage() : mixed
- メッセージを追加
- addPercentage() : mixed
- error() : mixed
- エラー処理
- getDestinationPath() : string
- Getter $destinationPath
- getJson() : stdClass
- Get json object
- init() : mixed
- 初期化
- load() : mixed
- ファイルからロード
- success() : mixed
- 成功時
- terminate() : mixed
- 終了処理
- build() : mixed
- JSON出力
Properties
$destinationPath
protected
string
$destinationPath
= ''
$json
protected
stdClass
$json
Methods
__construct()
Logger constructor.
public
__construct(string $path) : mixed
Parameters
- $path : string
addMessage()
メッセージを追加
public
addMessage(string $message[, int $percentage = 0 ][, int $status = 1 ]) : mixed
Parameters
- $message : string
- $percentage : int = 0
- $status : int = 1
addPercentage()
public
addPercentage([mixed $percentage = 0 ]) : mixed
Parameters
- $percentage : mixed = 0
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
stdClassinit()
初期化
public
init() : mixed
load()
ファイルからロード
public
load() : mixed
success()
成功時
public
success() : mixed
terminate()
終了処理
public
terminate() : mixed
build()
JSON出力
protected
build() : mixed