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?
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.
===============