Struct bdrck::logging::LogFilters [] [src]

pub struct LogFilters(pub Vec<LogFilter>);

Methods

impl LogFilters
[src]

[src]

Trait Implementations

impl FromStr for LogFilters
[src]

The associated error which can be returned from parsing.

[src]

Parse a set of log filters from a string.

We assume that the regex contained in log filters will only contain certain characters: those which can appear in valid module names (something like [A-Za-z_][A-Za-z0-9_]* separated by :'s), and maybe some modifiers or etc., like *+?|(){}[].

But, we want a string to contain several filters. So, using the above assumption about what characters will appear in the regex, we'll use the ; character as a separator. So, the final format is:

regex=level;regex=level;...