rewrite from lager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 rivejä
723 B

3 vuotta sitten
4 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
4 vuotta sitten
3 vuotta sitten
4 vuotta sitten
3 vuotta sitten
3 vuotta sitten
4 vuotta sitten
3 vuotta sitten
3 vuotta sitten
4 vuotta sitten
  1. -ifndef(__lgCom__).
  2. -define(__lgCom__, 1).
  3. %% 三目元算符
  4. -define(lgIIF(Cond, Then, That), case Cond of true -> Then; _ -> That end).
  5. -define(lgIIF(Expr, Expect, Then, ExprRet, That), case Expr of Expect -> Then; ExprRet -> That end).
  6. %% IF-DO表达式
  7. -define(lgIF(IFTure, DoThat), (IFTure) andalso (DoThat)).
  8. %% 配置模块
  9. -define(eLogCfg, eLogCfg).
  10. -define(eLogEts, eLogEts).
  11. -define(eLogPtTl, eLogPtTl).
  12. -define(LgDefSink, eLogEvent).
  13. -define(LgDefTruncation, 4096).
  14. %% 日志等级定义
  15. -define(llvDebug, 128).
  16. -define(llvInfo, 64).
  17. -define(llvNotice, 32).
  18. -define(llvWarning, 16).
  19. -define(llvError, 8).
  20. -define(llvCritical, 4).
  21. -define(llvAlert, 2).
  22. -define(llvEmergency, 1).
  23. -define(llvNone, 0).
  24. -endif.