예제 #1
0
        public IHttpActionResult Get(string module = All, string level = All)
        {
            var log = module.EqualsIgnoreCase(All) ?
                      _logmodule.GetAll() :
                      _logmodule.GetByModule(module);
            var levelsFilter = _logmodule.GetLevelsFilter(level);

            log = log.Where(l => levelsFilter.Contains(l.Level))
                  .OrderByDescending(l => l.Timestamp);
            return(Ok(log));
        }