A method to classificate logs severity

Its possible to build a function that do logs severity classification. As click in severity tab and automatically do events classification?

Sorry for bad english…