Platforms to show: All Mac Windows Linux Cross-Platform

Back to PhidgetLogMBS class.

PhidgetLogMBS.addSource(source as String, LogLevel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Adds a source to the Phidget logging system.

This is useful for declaring a source and setting its log level before sending any messages.

source: The source name
level: The log level of the source

PhidgetLogMBS.disable

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Disables logging within the Phidget library.

PhidgetLogMBS.disableNetwork

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Disable networking.

PhidgetLogMBS.disableRotating

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Disables automatic rotation of the log file.

PhidgetLogMBS.enable(LogLevel as Integer, destination as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Enables logging within the Phidget library.

LogLevel: The logging level
destination: The log file path, or "" for STDOUT

PhidgetLogMBS.enableNetwork(address as string, port as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Enable networking.

PhidgetLogMBS.enableRotating

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Enables automatic rotation of the log file (the default).

PhidgetLogMBS.getRotating(byref size as UInt64, byref keepCount as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current log rotation parameters.

size: The file size above which the log file should be rotated.
keepCount: The number of log files that will be kept after rotation.

PhidgetLogMBS.Log(LogLevel as Integer, Message as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Writes a message to the Phidget library log.

See also:

PhidgetLogMBS.Log(LogLevel as Integer, Source as String, Message as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Writes a message to the Phidget library log.

See also:

PhidgetLogMBS.rotate

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Manually rotate the log file.

This will only have an effect if automatic rotation is disabled and the log file is larger than the specified maximum file size.

PhidgetLogMBS.setRotating(size as UInt64, keepCount as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets log rotation parameters.

size: The file size above which the file should be rotated in bytes. Min: 32768 (32 KiB) Def: 10485760 (10 MiB)
keepCount: The number of log files that should be kept after rotation. Min: 0 Def: 1 Max: 64

PhidgetLogMBS.SourceLevel(source as String) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets or sets the log level of the specified log source.

(Read and Write computed property)

PhidgetLogMBS.Sources as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Queries current list of log sources.

The items on this page are in the following plugins: MBS Phidgets Plugin.


The biggest plugin in space...