public class LogManager
extends java.lang.Object
| Constructor and Description |
|---|
LogManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeLogField(java.lang.String field)
If any string within the log line contains a field separator (:) they need to be escaped so as the
line may be parsed and analysed later.
|
static java.lang.String |
getHeader(Context context,
java.lang.String action,
java.lang.String extrainfo)
Generate the log header
|
static java.lang.String |
unescapeLogField(java.lang.String field)
Unescape a log field.
|
public static java.lang.String getHeader(Context context, java.lang.String action, java.lang.String extrainfo)
context - the current Context - safe to pass in nullaction - string describing the actionextrainfo - string with extra information, like parameterspublic static java.lang.String escapeLogField(java.lang.String field)
field - The unescaped log fieldpublic static java.lang.String unescapeLogField(java.lang.String field)
field - The escaped log fieldCopyright © 2018 DuraSpace. All Rights Reserved.