-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolywrap.graphql
More file actions
98 lines (82 loc) · 2.33 KB
/
polywrap.graphql
File metadata and controls
98 lines (82 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
type Module {
"""
Logs a message with the specified log level, message content, and context, then returns the created LogEntry.
"""
log(level: LogLevel!, message: String!, context: String): LogEntry!
"""
Logs a trace-level message with the specified message content and context, then returns the created LogEntry.
"""
trace(message: String!, context: String): LogEntry!
"""
Logs a debug-level message with the specified message content and context, then returns the created LogEntry.
"""
debug(message: String!, context: String): LogEntry!
"""
Logs an info-level message with the specified message content and context, then returns the created LogEntry.
"""
info(message: String!, context: String): LogEntry!
"""
Logs a warning-level message with the specified message content and context, then returns the created LogEntry.
"""
warn(message: String!, context: String): LogEntry!
"""
Logs an error-level message with the specified message content and context, then returns the created LogEntry.
"""
error(message: String!, context: String): LogEntry!
"""
Logs a fatal-level message with the specified message content and context, then returns the created LogEntry.
"""
fatal(message: String!, context: String): LogEntry!
"""
Changes the minimum log level at runtime, returning true if successful.
"""
setLogLevel(level: LogLevel!): Boolean!
"""
Returns the current log level.
"""
getLogLevel: LogLevel!
"""
Retrieves a specific log entry by its ID.
"""
getLog(id: Int!): LogEntry
"""
Retrieves a list of logs, optionally filtered by the specified log level.
"""
getLogs(level: LogLevel): [LogEntry!]!
}
"""
Represents the various log levels.
"""
enum LogLevel {
TRACE
DEBUG
INFO
WARN
ERROR
FATAL
}
"""
Defines the structure of a log entry.
"""
type LogEntry {
"""
The unique identifier of the log entry.
"""
id: Int!
"""
The timestamp of the log entry in ISO 8601 format.
"""
timestamp: String!
"""
The log level of the log entry.
"""
level: LogLevel!
"""
The message content of the log entry.
"""
message: String!
"""
The context associated with the log entry, if any.
"""
context: String
}