package Ġcom . tester um . runner _ cmdline . runner _ tree . runner _ context Ċ Ċ import Ġcom . tester um . model . runner . tree . id . Runner Id Creator Ċ import Ġcom . tester um . runner . events . model . Runner Event Ċ import Ġcom . tester um . runner . events . model . Text Log Event Ċ import Ġcom . tester um . runner . events . model . error . Exception Detail Ċ import Ġcom . tester um . runner . events . model . log _ level . LogLevel Ċ import Ġcom . tester um . runner . glue _ object _ factory . Gl ue ObjectFactory Ċ import Ġcom . tester um . runner _ cmdline . events . Events Service Ċ import Ġcom . tester um . runner _ cmdline . runner _ api _ services . Test Variables Impl Ċ import Ġcom . tester um . runner _ cmdline . runner _ tree . vars _ context . Variables Context Ċ import Ġcom . tester um . runner _ cmdline . test _ context . TestContext Impl Ċ import Ġcom . tester um . runner _ cmdline . transformer . Transformer Factory Ċ import Ġjava . time . LocalDateTime Ċ Ċ data Ġclass ĠRunner Context ( ĊĠĠĠ Ġval Ġevents Service : ĠEvents Service , ĊĠĠĠ Ġval Ġsteps ClassLoader : ĠClassLoader , ĊĠĠĠ Ġval Ġglue ObjectFactory : ĠGl ue ObjectFactory , ĊĠĠĠ Ġval Ġtransformer Factory : ĠTransformer Factory , ĊĠĠĠ Ġval Ġvariables Context : ĠVariables Context , ĊĠĠĠ Ġval Ġtest Variables : ĠTest Variables Impl , ĊĠĠĠ Ġval Ġtest Context : ĠTest Context Impl Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġlog Event ( runner Event : ĠRunner Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġevents Service . log Event ( runner Event ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠlogMessage ( ĊĠĠĠĠĠĠĠ Ġmessage : ĠString , ĊĠĠĠĠĠĠĠ Ġexception : ĠThrowable ? Ġ= Ġnull ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlog Level Ġ= Ġif Ġ( exception Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( exception Ġis ĠAssertionError ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLogLevel . WARNING ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLogLevel . ERROR ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLogLevel . INFO ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġevents Service . log Event ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠText Log Event ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtime Ġ= ĠLocalDateTime . now (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġevent Key Ġ= ĠRunner Id Creator . getRoot Id (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlog Level Ġ= Ġlog Level , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage Ġ= Ġmessage , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġexception Detail Ġ= Ġexception ?. let Ġ{ ĠException Detail . from Throwable ( it ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ