Page MenuHomePhorge
Diviner Arcanist Tech Docs phutil_loggable_string

function phutil_loggable_string($string)
Arcanist Technical Documentation ()

Converts a string to a loggable one, with unprintables and newlines escaped.

Parameters
string$stringAny string.
Return
stringString with control and newline characters escaped, suitable for printing on a single log line.