[SERVER-47735] Convert all code to use `logv2` headers and names Created: 23/Apr/20  Updated: 29/Oct/23  Resolved: 27/Apr/20

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 4.4.0-rc4, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Issue split
split from SERVER-47207 upgrade setParameter & getParameter t... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Service arch 2020-05-04
Participants:

 Description   

No logger/ headers. Use logv2/ headers instead.

MONGO_LOG_DEFAULT_COMPONENT => MONGO_LOGV2_DEFAULT_COMPONENT

Remove logger/log_version_util.h and its V1<=>V2 casting function wrappers.

Remove the legacy aliases in the logv2 headers.

Auditing should be the only place still using logger.

remove mentions of LogstreamBuilder.



 Comments   
Comment by Githook User [ 03/May/20 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-47735 change mongo source over to logv2

  • Remove several legacy logger/ files
  • Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version.
  • Globally replace logger:: {LogSeverity,LogComponent}

    => logv2::

(cherry picked from commit eae31861e0f813f0099e1d490c4a622d75cd5a08)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d5bfe99ef95ba205192db36db14a7e46592094dc

Comment by Githook User [ 03/May/20 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-47735 Convert logger => logv2 (except audit_log_domain)

Combined cherry-picks (meant to be one on master)

(cherry picked from commit c366a78ceaa2b0ab3d76eeb37dc5e0a4d62c070b)
(cherry picked from commit 00de42a5f078a0fb18b4833b2ec175cf9073da77)
(cherry picked from commit e810b7d62c84b9555f3b00bff477e1c363d12078)
(cherry picked from commit 59ad86bf099013e8fb1a44db7ffa85896276e4e2)
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/5bd5c018eee9e34239f892c7716fc7c7d55a3cad

Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-47735 run clang-format over enterprise change
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/59ad86bf099013e8fb1a44db7ffa85896276e4e2

Comment by Githook User [ 26/Apr/20 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-47735 change mongo source over to logv2

Comment by Billy Donahue [ 26/Apr/20 ]

CR (mongo):
https://mongodbcr.appspot.com/579170001/

CR: (enterprise)
https://mongodbcr.appspot.com/561750001/

Generated at Thu Feb 08 05:15:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.