void test1() { setPrefix('method1'); info('test'); } void test2() { setPrefix('method2'); info('test2'); } ; setPrefix("Prefix 1"); test1(); test2();