-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
March 2024 Release of the APL 2024.1 compliant APL Viewhost Web
For more details on this release refer to CHANGELOG.md To learn about APL see: https://developer.amazon.com/docs/alexa-presentation-language/understand-apl.html
- Loading branch information
1 parent
e336266
commit 6828db6
Showing
23 changed files
with
219 additions
and
203 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
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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { LogLevel } from '../enums/LogLevel'; | ||
|
||
/// All supported levels for log command. | ||
export enum LogCommandLevel { | ||
debug, | ||
info, | ||
warn, | ||
error, | ||
critical | ||
} | ||
|
||
/// Convert a Core log level to a supported log level. | ||
export function logLevelToLogCommandLevel(level: LogLevel) { | ||
switch (level) { | ||
case LogLevel.kDebug: | ||
return LogCommandLevel.debug; | ||
case LogLevel.kInfo: | ||
return LogCommandLevel.info; | ||
case LogLevel.kWarn: | ||
return LogCommandLevel.warn; | ||
case LogLevel.kError: | ||
return LogCommandLevel.error; | ||
case LogLevel.kCritical: | ||
return LogCommandLevel.critical; | ||
default: | ||
return LogCommandLevel.info; | ||
} | ||
} | ||
|
||
/// Simple function type for log command callback. | ||
export type OnLogCommand = (level: LogCommandLevel, message: string, args: object) => void; |
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
Oops, something went wrong.