blob: 46bcfbf0dff0f76083cded956b6f47c12cdc0683 [file] [log] [blame]
export function vLogSearch(logItem, keyword) {
if (!keyword) {
return true;
}
// we do a contains for message, file and threadId fields only
if (logItem.message.indexOf(keyword) >= 0 ||
logItem.file.indexOf(keyword) >= 0 ||
logItem.threadId.toString().indexOf(keyword) >= 0) {
return true
}
return false;
};