Skip to content

Instantly share code, notes, and snippets.

@MelbourneDeveloper
Created January 31, 2021 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MelbourneDeveloper/e85445a755b4b87d9e8489a59682990d to your computer and use it in GitHub Desktop.
Save MelbourneDeveloper/e85445a755b4b87d9e8489a59682990d to your computer and use it in GitHub Desktop.
Device.Net Logging
//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