I've got it! Since the log level is set to WARN for the "root" category, any log messages with a level of WARN or higher (ERROR) will be written to the log, regardless of the category. So option A is the correct answer.
I'm not sure about this one. The code is using the "products" category, but the configuration is for the "root" category. Does that mean the "products" category inherits the log level from "root"? I'll have to think about this a bit more.
Okay, let me think this through. The log level is set to WARN, so any log messages with a level of WARN or higher (i.e., ERROR) should be written to the log. I'll go with option A.
I'm a bit confused here. The question mentions the "root" log category, but the code is using the "products" category. How does that affect the output?
I'm a bit confused by this question. The different Expressway zones are not something I'm super familiar with. I'll have to make an educated guess here, but I'm not feeling very confident about it. Maybe I should skip this one and come back to it if I have time at the end.
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.
Mitsue
3 months agoJosephine
3 months agoAudra
3 months agoCarlota
4 months agoJeffrey
4 months agoCarolynn
4 months agoLindy
4 months agoTricia
4 months agoLavonda
5 months agoMiriam
5 months agoBenton
5 months agoEura
5 months agoRyan
5 months agoBelen
5 months agoFidelia
5 months agoYolande
1 year agoKeshia
1 year agoRoy
1 year agoEvette
1 year agoDelfina
1 year agoErasmo
1 year agoPete
1 year agoJustine
1 year agoMargarett
1 year agoEthan
1 year agoTeddy
1 year agoLaine
1 year agoReiko
1 year agoCandida
1 year agoCletus
1 year agoDino
1 year agoHelga
1 year agoErasmo
1 year ago