Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3211eb1

Browse filesBrowse files
committed
Expose log level to plugins
In case they need to map it to something else.
1 parent 017b1cc commit 3211eb1
Copy full SHA for 3211eb1

2 files changed

+4-3Lines changed: 4 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node/plugin.ts‎

Copy file name to clipboardExpand all lines: src/node/plugin.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { field, Logger } from "@coder/logger"
1+
import { field, Level, Logger } from "@coder/logger"
22
import * as express from "express"
33
import * as fs from "fs"
44
import * as path from "path"
@@ -21,6 +21,7 @@ require("module")._load = function (request: string, parent: object, isMain: boo
2121
return {
2222
express,
2323
field,
24+
Level,
2425
proxy,
2526
WsRouter,
2627
}
Collapse file

‎typings/pluginapi.d.ts‎

Copy file name to clipboardExpand all lines: typings/pluginapi.d.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This file describes the code-server plugin API for adding new applications.
33
*/
4-
import { field, Logger } from "@coder/logger"
4+
import { field, Level, Logger } from "@coder/logger"
55
import * as express from "express"
66
import * as expressCore from "express-serve-static-core"
77
import ProxyServer from "http-proxy"
@@ -116,7 +116,7 @@ export { express }
116116
*
117117
* Re-exported so plugins don't have to import duplicate copies of the logger.
118118
*/
119-
export { field }
119+
export { field, Level }
120120

121121
export const proxy: ProxyServer
122122

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.