Created
January 31, 2021 00:35
-
-
Save MelbourneDeveloper/e85445a755b4b87d9e8489a59682990d to your computer and use it in GitHub Desktop.
Device.Net Logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Configure logging | |
var loggerFactory = LoggerFactory.Create((builder) => | |
{ | |
_ = builder.AddDebug().SetMinimumLevel(LogLevel.Trace); | |
}); | |
//Register the factory for creating Hid devices. | |
var hidFactory = | |
new FilterDeviceDefinition(vendorId: 0x534C, productId: 0x0001, label: "Trezor One Firmware 1.6.x", usagePage: 65280) | |
.CreateWindowsHidDeviceFactory(loggerFactory); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment