-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roman Volosatovs <[email protected]>
- Loading branch information
1 parent
48292e0
commit 6abbf1d
Showing
9 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,35 @@ | ||
/// WASI Logging is a logging API intended to let users emit log messages with | ||
/// simple priority levels and context values. | ||
interface logging { | ||
/// A log level, describing a kind of message. | ||
enum level { | ||
/// Describes messages about the values of variables and the flow of | ||
/// control within a program. | ||
trace, | ||
|
||
/// Describes messages likely to be of interest to someone debugging a | ||
/// program. | ||
debug, | ||
|
||
/// Describes messages likely to be of interest to someone monitoring a | ||
/// program. | ||
info, | ||
|
||
/// Describes messages indicating hazardous situations. | ||
warn, | ||
|
||
/// Describes messages indicating serious errors. | ||
error, | ||
|
||
/// Describes messages indicating fatal errors. | ||
critical, | ||
} | ||
|
||
/// Emit a log message. | ||
/// | ||
/// A log message has a `level` describing what kind of message is being | ||
/// sent, a context, which is an uninterpreted string meant to help | ||
/// consumers group similar messages, and a string containing the message | ||
/// text. | ||
log: func(level: level, context: string, message: string); | ||
} |
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,5 @@ | ||
package wasi:logging; | ||
|
||
world imports { | ||
import 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ package west:[email protected]; | |
|
||
world imports { | ||
include wasiext:http/imports@0.1.0; | ||
|
||
import wasi:logging/logging; | ||
} |