Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam B2C Commerce Developer Topic 3 Question 79 Discussion

Actual exam question for Salesforce's B2C Commerce Developer exam
Question #: 79
Topic #: 3
[All B2C Commerce Developer 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:

Yolande
2 months 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 months ago
Definitely option A, and yeah, 'products' is not the best choice for a log category name.
upvoted 0 times
...
Roy
1 months ago
I would go with option A too, and I totally get what you mean about the log category name.
upvoted 0 times
...
Evette
2 months ago
Yeah, I agree. But seriously, 'products' as a log category? That's just asking for trouble.
upvoted 0 times
...
Delfina
2 months ago
I think the answer is option A, it will write a warn and an error message to the log.
upvoted 0 times
...
...
Erasmo
2 months 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
3 months 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
3 months 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
3 months 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 months ago
So, both messages will be written to the log.
upvoted 0 times
...
Teddy
1 months ago
The 'error' message will also be logged because it has a higher severity level.
upvoted 0 times
...
Laine
2 months ago
Yes, the 'warn' message will be logged due to the log level being WARN.
upvoted 0 times
...
Reiko
2 months ago
I agree, option A is the correct answer.
upvoted 0 times
...
Candida
2 months ago
The 'error' message will also be logged because it has a higher severity level.
upvoted 0 times
...
Cletus
2 months ago
Yes, the 'warn' message will be logged due to the log level being WARN.
upvoted 0 times
...
Dino
2 months ago
I agree, option A is the correct answer.
upvoted 0 times
...
...
Helga
3 months ago
I disagree, I believe the answer is B.
upvoted 0 times
...
Erasmo
3 months ago
I think the answer is A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77