New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 3 Question 79 Discussion

Actual exam question for Salesforce's Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) exam
Question #: 79
Topic #: 3
[All Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Questions]

Business Manager has the configuration:

* Active Log category is "root"

* Log level of WARN

The code below is executing:

var log = Logger.getLogger(''products'');

Using this information, what will be written to the log?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Mitsue
3 months ago
I disagree, A is the only option that makes sense here.
upvoted 0 times
...
Josephine
3 months ago
Wait, so WARN messages actually get logged? Surprising!
upvoted 0 times
...
Audra
3 months ago
I think B is wrong, INFO won't be logged at WARN level.
upvoted 0 times
...
Carlota
4 months ago
Definitely A, both messages should show up!
upvoted 0 times
...
Jeffrey
4 months ago
Only WARN and ERROR messages will be logged.
upvoted 0 times
...
Carolynn
4 months ago
I’m a bit confused about the logger name 'products'—does that affect what gets logged? I thought it was just about the log level.
upvoted 0 times
...
Lindy
4 months ago
This question feels similar to one we practiced where we had to determine what gets logged based on the log level. I think A might be correct.
upvoted 0 times
...
Tricia
4 months ago
I'm not entirely sure, but I think INFO messages won't be logged since they are below the WARN level.
upvoted 0 times
...
Lavonda
5 months ago
I remember that the log level is set to WARN, so only WARN and ERROR messages should be logged.
upvoted 0 times
...
Miriam
5 months ago
I've got it! Since the log level is set to WARN for the "root" category, any log messages with a level of WARN or higher (ERROR) will be written to the log, regardless of the category. So option A is the correct answer.
upvoted 0 times
...
Benton
5 months ago
I'm not sure about this one. The code is using the "products" category, but the configuration is for the "root" category. Does that mean the "products" category inherits the log level from "root"? I'll have to think about this a bit more.
upvoted 0 times
...
Eura
5 months ago
Okay, let me think this through. The log level is set to WARN, so any log messages with a level of WARN or higher (i.e., ERROR) should be written to the log. I'll go with option A.
upvoted 0 times
...
Ryan
5 months ago
I'm a bit confused here. The question mentions the "root" log category, but the code is using the "products" category. How does that affect the output?
upvoted 0 times
...
Belen
5 months ago
Hmm, this seems straightforward. The key is understanding the log level configuration and how it affects the logging output.
upvoted 0 times
...
Fidelia
5 months ago
I'm a bit confused by this question. The different Expressway zones are not something I'm super familiar with. I'll have to make an educated guess here, but I'm not feeling very confident about it. Maybe I should skip this one and come back to it if I have time at the end.
upvoted 0 times
...
Yolande
1 year ago
Hold up, is this a trick question? I bet the answer is option A, but the real question is why the heck would anyone name their log category 'products'? That's just begging for confusion!
upvoted 0 times
Keshia
1 year ago
Definitely option A, and yeah, 'products' is not the best choice for a log category name.
upvoted 0 times
...
Roy
1 year ago
I would go with option A too, and I totally get what you mean about the log category name.
upvoted 0 times
...
Evette
1 year ago
Yeah, I agree. But seriously, 'products' as a log category? That's just asking for trouble.
upvoted 0 times
...
Delfina
1 year ago
I think the answer is option A, it will write a warn and an error message to the log.
upvoted 0 times
...
...
Erasmo
1 year ago
But the log level is set to WARN, so only WARN and ERROR messages will be written to the log.
upvoted 0 times
...
Pete
1 year ago
This is a tricky one, but I'm going with option C. The code is using 'Logger.getLogger('products')', so the 'root' logger configuration shouldn't apply. The 'info' message should be the only one logged since the log level is set to WARN.
upvoted 0 times
...
Justine
1 year ago
Well, the question states that the code is executing 'var log = Logger.getLogger('products');', so I'm going to go with option B. The 'error' message should be logged, and the 'info' message should also be logged since it's less severe than the 'warn' level.
upvoted 0 times
...
Margarett
1 year ago
Hmm, the active log category is 'root' and the log level is set to WARN, so I think option A is the correct answer. The 'warn' message should be logged, but the 'error' message will also be logged due to the higher severity level.
upvoted 0 times
Ethan
1 year ago
So, both messages will be written to the log.
upvoted 0 times
...
Teddy
1 year ago
The 'error' message will also be logged because it has a higher severity level.
upvoted 0 times
...
Laine
1 year ago
Yes, the 'warn' message will be logged due to the log level being WARN.
upvoted 0 times
...
Reiko
1 year ago
I agree, option A is the correct answer.
upvoted 0 times
...
Candida
1 year ago
The 'error' message will also be logged because it has a higher severity level.
upvoted 0 times
...
Cletus
1 year ago
Yes, the 'warn' message will be logged due to the log level being WARN.
upvoted 0 times
...
Dino
1 year ago
I agree, option A is the correct answer.
upvoted 0 times
...
...
Helga
1 year ago
I disagree, I believe the answer is B.
upvoted 0 times
...
Erasmo
1 year ago
I think the answer is A.
upvoted 0 times
...

Save Cancel