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!
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.
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.
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.
Yolande
2 months agoKeshia
1 months agoRoy
1 months agoEvette
2 months agoDelfina
2 months agoErasmo
2 months agoPete
3 months agoJustine
3 months agoMargarett
3 months agoEthan
1 months agoTeddy
1 months agoLaine
2 months agoReiko
2 months agoCandida
2 months agoCletus
2 months agoDino
2 months agoHelga
3 months agoErasmo
3 months ago