Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Comm-Dev-101 Exam - Topic 2 Question 4 Discussion

Posted by Tiffiny on Sep 29, 2026 at 05:20 AM

Business Manager has the configuration:

* Active Log category is "root"

* Log level of INFO

The code below executes.

varlog=Logger.getLogger("products","export");

log.info("This is important information");

Using this information, what is the beginning of the filename in which the log will be written?

Suggested Answer: B

The two-argument overload ofLogger.getLogger()has the signaturegetLogger(fileNamePrefix, category). Therefore, inLogger.getLogger('products', 'export'),productsis the developer-defined filename prefix andexportis the logging category.

Salesforce documents that custom application log files begin withcustom, while the suppliedfileNamePrefixidentifies the named custom log file. Consequently, the resulting filename begins withcustom-products, making option B correct. The category valueexportcontrols filtering through the custom-log category hierarchy but does not replace the filename prefix.

The configured root level of INFO also permits thislog.info()message because INFO is at the configured threshold. Higher-severity WARN, ERROR, and FATAL entries would likewise pass the root filter unless a more specific category rule superseded it.

This distinction between filename prefix and category is significant in production diagnostics. The prefix controls which named custom file receives the entries, while categories provide hierarchical filtering and operational control through Business Manager.

Study Guide reference:Application Development ---dw.system.Logger, custom named logs, filename prefixes, categories, and log-level filtering.

===============


Get Premium Comm-Dev-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
6 comments · newest first
OL
Olene 10 hours ago
Totally agree, it’s straightforward.
SH
Shonda 6 days ago
A) products is correct!
AN
Annamaria 11 days ago
I’m a bit confused about the custom part. I thought it was just the logger name, but maybe it’s "custom-export" since it’s related to the export action?
VI
Victor 16 days ago
I practiced a question like this, and I think the log filename starts with the logger name, which is "products".
LY
Lynette 21 days ago
I’m not entirely sure, but I feel like we discussed something about custom prefixes in a similar question. Could it be "custom-products"?
GL
Gladys 26 days ago
I remember that the logger name usually corresponds to the category specified, so I think it might be "products".
0/2000 characters

Save Cancel