<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:10 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-1029] Split logging configuration control from instance initialization</title>
                <link>https://jira.mongodb.org/browse/CXX-1029</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Currently, &lt;tt&gt;mongocxx::instance&lt;/tt&gt; configures logging on construction.  That means that logging can only be safely configured once per application.&lt;/p&gt;

&lt;p&gt;There may be cases where turning logging on only temporarily is desirable (e.g. to debug certain sections of code).  By binding logging to the lifetime of libmongoc initialization/cleanup, we prevent users from modifying the global logging callback.&lt;/p&gt;

&lt;p&gt;We should split logging out of &lt;tt&gt;mongocxx::instance&lt;/tt&gt; and use that only for libmongoc initialization/cleanup.  Setting the global logger should be a method on that class.&lt;/p&gt;

&lt;p&gt;We could also allow someone to get a copy of the current global logging function and use a guard object to temporarily replace it for a particular scope.&lt;/p&gt;</description>
                <environment></environment>
        <key id="315752">CXX-1029</key>
            <summary>Split logging configuration control from instance initialization</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Sep 2016 23:22:19 +0000</created>
                <updated>Fri, 17 Feb 2023 21:13:15 +0000</updated>
                                                                            <component>API</component>
                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1387090" author="acm" created="Sun, 18 Sep 2016 15:27:20 +0000"  >&lt;p&gt;I think it might be better to just make it possible to obtain a reference to the configured logger in the instance. The application can then, if needed, downcast to the known dynamic type and interact with it as needed. I do, however, think that we should probably add a mongocxx::instance::options type and make the instance constructor consume that, rather than the logger, directly. That would give us a placeholder for other future instance configuration options.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-2448</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxk833:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>