Skip to content

Add timestamp to Client logs #2

Description

@global-es

Just add a timestamp to every log record in your Client.php:

    private function log($msg)
    {
        $msg = date('c') . "\t" . $msg;
	if (!$this->_debug) {
            return;
        }
        if (!$this->_logfile) {
            error_log($msg);
        } else {
            error_log($msg . "\n", 3, $this->_logfile);
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions