Documentation

CFILog
in package

$this->core->cfiLog Class to Manage Datastore Logs and Bitacora Entries

Table of Contents

Properties

$core  : Core7
$dsBitacora  : DataStore
$dsLogs  : DataStore
$error  : mixed
$errorMsg  : mixed

Methods

__construct()  : mixed
add()  : mixed
Add a LOG entry in CloudFrameWorkLogs
bitacora()  : int|void
Add a LOG entry in CloudFrameWorkBitacora
sendToCFBitacora()  : bool|void
Send a LOG to CF ERP Bitacora
sendToCFService()  : bool|void
Add a LOG entry in CloudFrameWorkLogs
addError()  : mixed
initDSLogs()  : mixed
Init $this->dsLog

Properties

$error

public mixed $error = \false

$errorMsg

public mixed $errorMsg = \null

Methods

__construct()

public __construct(Core7 &$core) : mixed
Parameters
$core : Core7

add()

Add a LOG entry in CloudFrameWorkLogs

public add( $app,  $action,  $title,  $method,  $user[, null|array<string|int, mixed> $data = null ][, null|string $slack_url = null ][, null|array<string|int, mixed> $rewrite_fingerprint = null ][,  $id = null ]) : mixed
Parameters
$app :
$action :

string 'ok', 'error', 'check'..

$title :
$method :
$user :
$data : null|array<string|int, mixed> = null
$slack_url : null|string = null
$rewrite_fingerprint : null|array<string|int, mixed> = null

if you want to rewrite the default fingerprint send it here

$id : = null

bitacora()

Add a LOG entry in CloudFrameWorkBitacora

public bitacora(string $user, string $action, string $solution, string $app[, null|string $app_id = null ][, null|string $title = null ][, null|mixed $data = null ]) : int|void
Parameters
$user : string
$action : string

'inserted'',updated', 'deleted', 'accessed'.. Try to add a past verb over a Solution/App

$solution : string
$app : string
$app_id : null|string = null

string Id of the app to which receive and action

$title : null|string = null
$data : null|mixed = null

values to add in bitacora if it is necessary

Return values
int|void

It returns the KeyId of the Datastore

sendToCFBitacora()

Send a LOG to CF ERP Bitacora

public sendToCFBitacora(string $user,  $action, string $solution, string $app[, null|string $app_id = null ][, null|string $title = null ][, null|mixed $data = null ]) : bool|void
Parameters
$user : string
$action :

string 'inserted'',updated', 'deleted', 'accessed'.. Try to add a past verb over a Solution/App

$solution : string
$app : string
$app_id : null|string = null

Id of the app to which receive and action

$title : null|string = null
$data : null|mixed = null

values to add in bitacora if it is necessary

Return values
bool|void

sendToCFService()

Add a LOG entry in CloudFrameWorkLogs

public sendToCFService( $app,  $action,  $title,  $method,  $user,  $data,  $platform,  $api_key[, true|false $rewrite_fingerprint = false ]) : bool|void
Parameters
$app :
$action :

string 'ok', 'error', 'check'..

$title :
$method :
$user :
$data :
$platform :
$api_key :
$rewrite_fingerprint : true|false = false

// send the fingerprint of the current call

Return values
bool|void

addError()

private addError(mixed $msg) : mixed
Parameters
$msg : mixed

initDSLogs()

Init $this->dsLog

private initDSLogs() : mixed

        
On this page

Search results