瀏覽代碼

[console] log level extended

Exilon 5 年之前
父節點
當前提交
dc34eaf47c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Quick.Console.pas

+ 4 - 2
Quick.Console.pas

@@ -1,13 +1,13 @@
 { ***************************************************************************
 { ***************************************************************************
 
 
-  Copyright (c) 2016-2019 Kike Pérez
+  Copyright (c) 2016-2020 Kike Pérez
 
 
   Unit        : Quick.Console
   Unit        : Quick.Console
   Description : Console output with colors and optional file log
   Description : Console output with colors and optional file log
   Author      : Kike Pérez
   Author      : Kike Pérez
   Version     : 1.9
   Version     : 1.9
   Created     : 10/05/2017
   Created     : 10/05/2017
-  Modified    : 23/11/2019
+  Modified    : 05/06/2020
 
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
 
@@ -292,6 +292,8 @@ begin
           etWarning : TextColor(ccYellow);
           etWarning : TextColor(ccYellow);
           etDebug : TextColor(ccLightCyan);
           etDebug : TextColor(ccLightCyan);
           etTrace : TextColor(ccLightMagenta);
           etTrace : TextColor(ccLightMagenta);
+          etCritical : begin TextColor(ccYellow); TextBackground(ccRed); end;
+          etException : TextColor(ccRed);
           else TextColor(ccWhite);
           else TextColor(ccWhite);
         end;
         end;
         {$I-}
         {$I-}