Logger & Debugging

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

How would you log in a custom file with a custom attribute? 1. Logger.getLogger('profile').debug('hello' + http.statusCode) 2. Logger.getLogger('profile').debug('hello{0}', http.statusCode)

2. Logger.getLogger('profile').debug('hello{0}', http.statusCode) static debug(msg : String, args : Object...) : void The method reports a debug level message. Arguments can be embedded into the message, e.g. like "Failure {0} in {1}". The method implements the Java MessageFormat.format() syntax.

Where can you define Custom Log Settings in BM?

Administration/Operations/Custom Log Settings/

How do you see cache info?

Ensure cache is checked in toolkit, then hover over the cache icons that appear over components on strorefront.

Storefront toolkit gives information on? Select Multiple A. Search B. Content Assets C. Templates D. Scripts

Everything but D. Scripts

What happens If logging reaches quota?

Logging stops 24 hours

what does logger do?

The logger object allows you to collect the error information and to log errors on server-side validation without breaking the storefront. Example: // Returns the logger object for the given file name prefix and category. // static getLogger(fileNamePrefix : String, category : String) : Log var Logger = require('dw/system/Logger'); Logger.getLogger('newsletter').error(Resource.msg('error.customobjectmissing', 'newsletter', nulll));

What is the output log file name for the custom error log a. customerror-blade-... b. custom-error-blade-... c. error-blade-....

b. custom-error-blade-...

How to include logger?

require(dw/system/Logger)


Kaugnay na mga set ng pag-aaral

Honan-Chapter 25: Patients With Hepatic and Biliary Disorders

View Set

SB 17 Integrated Marketing Communications

View Set

R/E Finance: Unit 11 - Deeds of Trust & Mortgages

View Set

Honors Chemistry 1 Semester Exam (Part 2)

View Set