[#BloombergLP-ball-LoggerManager-addRule] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::addRule :relfileprefix: ../../../ :mrdocs: Add a rule having the specified `value` to the set of (unique) rules maintained by this object. Return the number of rules added (i.e., 1 on success and 0 if a rule with the same value is already present). == Synopsis Declared in `<ball_loggermanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addRule(xref:BloombergLP/ball/Rule.adoc[Rule] const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#