Rule

store rules for logging

Constructors

this
this(shared Rule parent = null)

Members

Functions

allowedLevel
LogLevel allowedLevel(string emitter = "")

if emitter is "" returns self level

allowedLevelImpl
LogLevel allowedLevelImpl(string[] emitter)

if emitter is "" returns self level

isAllowed
bool isAllowed(in LogMessage lm)

test is message allowed for this rule

setLevel
void setLevel(LogLevel lvl, string emitter = "")

setting allowed level for emitter (create new inner Rule), if emitter is "" sets self level

strRepresent
string strRepresent()

return string what represent of rule structure

Properties

onlyRegister
bool onlyRegister [@property getter]
onlyRegister
bool onlyRegister [@property setter]
useMinimal
bool useMinimal [@property getter]
useMinimal
bool useMinimal [@property setter]

Variables

inner
Rule[string] inner;
level
LogLevel level;
parent
Rule parent;

Meta