-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(logging): export logging API
1. Rename the `Logging` interface to `Logger` 2. Explicity set the type for the logger field on RP2040 and GDBServer to the Logger interface, making it easy to override the logger with a custom implementation of the interface. 3. Export the Logger interface, ConsoleLogger implementation, and LogLevel enum
- Loading branch information
Showing
4 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { GDBTCPServer } from './gdbserver'; | ||
export { GPIOPin, GPIOPinState } from './gpio-pin'; | ||
export { RP2040 } from './rp2040'; | ||
export { ConsoleLogger, Logger, LogLevel } from './utils/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
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