Skip to content
This repository was archived by the owner on Jan 11, 2018. It is now read-only.

Latest commit

 

History

History
19 lines (16 loc) · 476 Bytes

File metadata and controls

19 lines (16 loc) · 476 Bytes

logger-php

Repository for exporting our PHP Logger

LOG_FULLPATH and LOG_DIR may be set as environment variables, otherwise the log path defaults to /var/log/paperg/placelocal

Usage:

$contextObject = ["hello" => "hi!"];
ApiLog::info("Some text", $contextObject);
LogTags::add("CampaignId", "Banana");
ApiLog::info("Some text", $contextObject);

Outputs:

[api:info] Some text  {"hello":"hi"}
[api:info] [CampaignId: Banana] Some text  {"hello":"hi"}