-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.hx
executable file
·70 lines (58 loc) · 1.66 KB
/
Main.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package;
using stx.Pico;
using stx.Nano;
using stx.Log;
using stx.Assert;
using stx.log.Core;
class Main{
static function main(){
//macro_test();
trace("MAIN");
//final entry = Entry.fromString('hello');
// final pos : LogPosition = __.here();
// var log = new stx.Log();
// log.comply(entry,pos);
//stx.log.Test.main();
__.log().info("begin");
__.log().global().configure(
api -> api.with_logic(
logic -> logic.tags(['toot'])
)
);
__.log().info("begin again");
// __.logger().configure(
// api -> api.with_logic(
// logic -> logic.level(TRACE)
// )
// );
// __.log().trace("hi");
// trace("____________________________");
// __.logger().configure(
// api -> api.with_logic(
// _ -> new stx.log.global.filter.IsFilteringWithTags().toLogic().or(new stx.log.global.filter.ReinstateTagless().toLogic())
// )
// );
// __.log().trace("hi again");
// __.logger().configure(
// api -> api.with_logic(
// logic -> logic.and( logic.tags(['gello']))
// )
// );
// __.log().trace("hello again");
// new stx.log.global.config.ReinstateTagless().value = true;
// __.logger().configure(
// api -> api.with_logic(
// logic -> logic.and( logic.tags(['gello']))
// )
// );
// __.log().trace("helloski");
// new stx.log.global.config.ReinstateTagless().value = false;
// __.log().tag('gello').trace('bienvenido');
}
// macro static function macro_test(){
// trace("MACRO");
// stx.log.Test.main();
// __.log().debug("ok");
// return macro {};
// }
}