Salesforce CCM-101 Exam - Topic 9 Question 25 Discussion
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.Which snippet of code should be used?
A) Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
B) Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());
C) Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
D) Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
Chantay
6 months agoEarnestine
7 months agoArlene
7 months agoCherri
7 months agoWynell
7 months agoDelmy
8 months agoMauricio
8 months agoMeaghan
8 months agoBrett
8 months agoEnola
8 months agoDeeanna
8 months agoTess
1 year agoVicente
1 year agoJesse
12 months agoAnnelle
12 months agoZona
12 months agoCarma
1 year agoJavier
1 year agoIvory
1 year agoElinore
1 year agoLorenza
12 months agoKenia
1 year agoRebbecca
1 year agoKimbery
1 year agoEva
1 year agoMelynda
1 year agoProvidencia
1 year agoLucy
1 year agoElise
1 year ago