Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Returns the total count of fatal log entries emitted.

 

Syntax

 

count = <cAppLog>.Log.Count.Fatal

 

Returns

 

None

 

Parameters

 

None

 

Remarks

 

The count starts at zero after creation of the logger.

 

Restrictions

 

See also

 

Examples

 

uses "AppLog"

 

dim myLog as new cAppLog

 

myLog.TextFile.FileName = APP_ScriptPath + "myApplication.log"

myLog.TextFile.Active   = %true

myLog.TextFile.Format   = "{Count} {Computer} {User} {Date} {DateUTC} {Time} {TimeUTC} {Level} {LevelChar} {LevelVerbose}: {Text}"

 

myLog.Log.Trace("Just some trace info")

myLog.Log.Debug("My first debug text")

myLog.Log.Debug("My second debug text")

myLog.Log.Info("Information no.1")

myLog.Log.Info("Information no.2")

myLog.Log.Info("Information no.3")

myLog.Log.Warn("Just a warning!")

myLog.Log.Error("Oh no, problem occurred!")

myLog.Log.Fatal("This is the end - fatal error occurred")

 

MsgBox 0, "Trace count:" + myLog.Log.Count.Trace + $CRLF +

          "Debug count:" + myLog.Log.Count.Debug + $CRLF +

          "Info  count:" + myLog.Log.Count.Info  + $CRLF +

          "Warn  count:" + myLog.Log.Count.Warn  + $CRLF +

          "Error count:" + myLog.Log.Count.Error + $CRLF +

          "Fatal count:" + myLog.Log.Count.Fatal + $CRLF

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software