<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:08 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>[JAVA-375] Create logger per class/package</title>
                <link>https://jira.mongodb.org/browse/JAVA-375</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;For 3.0, we are going to standardize on new prefixes for all loggers:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;org.mongodb.driver&lt;/li&gt;
	&lt;li&gt;org.bson&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Logger names are:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;org.mongodb.driver.management&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.cluster&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.cluster.monitor&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.connection&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.session&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.operation&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.protocol&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.uri&lt;/li&gt;
	&lt;li&gt;org.bson.reader&lt;/li&gt;
	&lt;li&gt;org.bson.writer&lt;/li&gt;
	&lt;li&gt;org.bson.ObjectId&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
        <key id="18069">JAVA-375</key>
            <summary>Create logger per class/package</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>logging</label>
                    </labels>
                <created>Thu, 9 Jun 2011 14:41:12 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:40 +0000</updated>
                            <resolved>Fri, 23 Aug 2013 17:57:29 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Monitoring</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="869388" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:40 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="410144" author="auto" created="Fri, 23 Aug 2013 17:55:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-375&quot; title=&quot;Create logger per class/package&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-375&quot;&gt;&lt;del&gt;JAVA-375&lt;/del&gt;&lt;/a&gt;: Standardizing on org.mongodb.driver as the prefix for all loggers.  Loggers are currently:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;org.mongodb.driver.cluster&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.cluster.monitor&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.connection&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.management&lt;/li&gt;
	&lt;li&gt;org.mongodb.driver.uri&lt;br/&gt;
More will be added soon.&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/39180d51cc15a565221531db10085f959b7547ed&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/39180d51cc15a565221531db10085f959b7547ed&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="107098" author="jeff.yemin" created="Thu, 5 Apr 2012 19:03:11 +0000"  >&lt;p&gt;I would consider this backward-breaking, since peoples existing log configuration would not work the same if we renamed the loggers.  &lt;/p&gt;</comment>
                            <comment id="72644" author="shekharv@gmail.com" created="Tue, 13 Dec 2011 03:19:04 +0000"  >&lt;p&gt;the first pass IMO does not maandate changing actual behavior other than cleaning up initialization and proper package and class naming. so props init would still be thesame.&lt;/p&gt;</comment>
                            <comment id="72642" author="shekharv@gmail.com" created="Tue, 13 Dec 2011 03:14:43 +0000"  >&lt;p&gt;eg: &lt;br/&gt;
DBPort( ServerAddress addr  , DBPortPool pool , MongoOptions options ){&lt;br/&gt;
        _options = options;&lt;br/&gt;
        _sa = addr;&lt;br/&gt;
        _addr = addr.getSocketAddress();&lt;br/&gt;
        _pool = pool;&lt;/p&gt;

&lt;p&gt;        _hashCode = _addr.hashCode();&lt;/p&gt;

&lt;p&gt;        _logger = Logger.getLogger( _rootLogger.getName() + &quot;.&quot; + addr.toString() );&lt;br/&gt;
        _decoder = _options.dbDecoderFactory.create();&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;this statement    &lt;br/&gt;
_logger = Logger.getLogger( _rootLogger.getName() + &quot;.&quot; + addr.toString() );&lt;br/&gt;
seems to have logic in creating a logger with the right name. is this something that can be changed(fixed) without causing other problems? the logging statements will probably also need to be fixed to reflect these changes and still output the right log info.    &lt;/p&gt;</comment>
                            <comment id="72641" author="scotthernandez" created="Tue, 13 Dec 2011 03:11:10 +0000"  >&lt;p&gt;It would be nice if the old system properties still worked for a few versions.&lt;/p&gt;</comment>
                            <comment id="72640" author="shekharv@gmail.com" created="Tue, 13 Dec 2011 03:07:14 +0000"  >&lt;p&gt;i can take this up. should be straightforward enough to do as i attempt to familiarize myself with the code base for different changes anyways. &lt;/p&gt;

&lt;p&gt;any gotchas you guys can think of in cleaning up the logger initialization and point to the standard classname format?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhbzb:</customfieldvalue>

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