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

Save Cancel