public void OnLogFilter(string filterName, ToastLoggerLogObject logObject)
        {
            LogEntry log = new LogEntry();

            log.LogType       = logObject.GetLoggerType();
            log.LogLevel      = logObject.GetLogLevel();
            log.Message       = logObject.GetLogMessage();
            log.TransactionId = logObject.GetTransactionId();
            log.CreateTime    = logObject.GetCreateTime();

            if (_listenerLogger != null)
            {
                _listenerLogger.OnFilter(log, LogFilter.FromName(filterName));
            }
        }
        public void OnLogFilter(string jsonString)
        {
            ToastLog.Debug("[OnLogFilter] {0}", jsonString);

            LogEntry log;

            if (TryParseLog(jsonString, out log))
            {
                JSONNode filter;
                if (JsonUtils.TrySelectJsonObject(jsonString, out filter, "body", "filter"))
                {
                    if (filter.IsObject)
                    {
                        if (_listenerLogger != null)
                        {
                            _listenerLogger.OnFilter(log, LogFilter.From(filter.AsObject));
                        }
                    }
                }
            }
        }