[SERVER-16209] Simplify log component names Created: 18/Nov/14  Updated: 27/Oct/15  Resolved: 18/Nov/14

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 2.8.0-rc1

Type: Improvement Priority: Minor - P4
Reporter: Matt Kangas Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: polish
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-4359 named logging - additional info Closed
is related to SERVER-5092 Better named logging with tracing Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Followup to SERVER-5092.

Log component names should be made more grammatically regular and consistent with their log file representation, to reduce the opportunity for user mistakes when configuring logComponentVerbosity.



 Comments   
Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 jstest fixes
Branch: master
https://github.com/mongodb/mongo/commit/c0a623cf2bba01c4fbb78bda4a7b2e67c1c8d2d8

Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 test fix
Branch: master
https://github.com/mongodb/mongo/commit/8987c8005e54430c0934c02b2cb62d8545028e89

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kWrites -> kWrite
Branch: master
https://github.com/mongodb/mongo/commit/107a8a87e50f4e625c6a4f0c533db0f75f037093

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kJournaling -> kJournal
Branch: master
https://github.com/mongodb/mongo/commit/9efe8f1e1d37239cf77e8b5de57bce42dc43e8e1

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kNetworking -> kNetwork
Branch: master
https://github.com/mongodb/mongo/commit/af8fdf9102f60fc731ef64c8ad5cb2b19745dc4e

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kIndexing -> kIndex
Branch: master
https://github.com/mongodb/mongo/commit/6704a4548ae6b5c310991e4d5d82509999cef306

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kCommands -> kCommand
Branch: master
https://github.com/mongodb/mongo/commit/f88237b9afdf56989adb5113890646d931d520cc

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 Simplify log component names
Branch: master
https://github.com/mongodb/mongo/commit/27e1526d49b169f5086ad88c15903143cb1906b7

Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-16209 LogComponent::kNetworking -> kNetwork
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/0645945b1f230a00cb0c752b2379b260dd755d52

Comment by Matt Kangas [ 18/Nov/14 ]

Proposal:

  • "Component name" is the form expected by the db.setLogLevel() shell helper
  • "Logged as" is the form it appears in logfiles. Precisely 8 characters including spaces.
Component name Logged as Was:
default "- "  
accessControl "ACCESS "  
command "COMMAND " (commands, "COMMANDS")
control "CONTROL "  
geo "GEO "  
index "INDEX " (indexing, "INDEXING")
network "NETWORK " (networking, "NETWORK")
query "QUERY "  
replication "REPL " (replication, "REPLSETS")
sharding "SHARDING"  
storage "STORAGE "  
storage.journal "JOURNAL " (journaling, "JOURNAL ")
write "WRITE " (writes, "WRITES ")
Generated at Thu Feb 08 03:40:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.