<div dir="ltr">I am trying to use a severity channel logger but I hit the problem with BOOST_LOG_SEV not being a const method -- I&#39;m thinking because of both open_record() and push_record()<br clear="all"><div><div><br>

</div><div>This will basically force me to make all methods in my classes not const because they want to write out to their loggers. I can&#39;t really afford to do that -- so I&#39;m restricted to �global loggers at the moment.</div>

<div><br></div><div>In my current implementation, each class has a logger with the class name as the channel (initialized in their constructors), and it issues log messages at any point with <font face="courier new, monospace">BOOST_LOG_SEV(this-&gt;logger, level)</font>�</div>

<div><br></div><div>I&#39;d love to hear the reason behind the non-constness and if my design is not the intended for Boost::Log.�</div><div><br></div><div>Thank you for your help.</div><div><br></div>Mauricio Carneiro, Ph.D.<br>

<a href="http://www.broadinstitute.org/~carneiro/" target="_blank">http://www.broadinstitute.org/~carneiro/</a></div>
</div>