Page MenuHomePhorge
Diviner libphutil Tech Docs phutil_loggable_string

function phutil_loggable_string($string)
libphutil Technical Documentation (Core Utilities)

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.