Expose log level to plugins
In case they need to map it to something else.
This commit is contained in:
parent
017b1cc633
commit
3211eb1ce5
|
@ -1,4 +1,4 @@
|
||||||
import { field, Logger } from "@coder/logger"
|
import { field, Level, Logger } from "@coder/logger"
|
||||||
import * as express from "express"
|
import * as express from "express"
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
|
@ -21,6 +21,7 @@ require("module")._load = function (request: string, parent: object, isMain: boo
|
||||||
return {
|
return {
|
||||||
express,
|
express,
|
||||||
field,
|
field,
|
||||||
|
Level,
|
||||||
proxy,
|
proxy,
|
||||||
WsRouter,
|
WsRouter,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* This file describes the code-server plugin API for adding new applications.
|
* This file describes the code-server plugin API for adding new applications.
|
||||||
*/
|
*/
|
||||||
import { field, Logger } from "@coder/logger"
|
import { field, Level, Logger } from "@coder/logger"
|
||||||
import * as express from "express"
|
import * as express from "express"
|
||||||
import * as expressCore from "express-serve-static-core"
|
import * as expressCore from "express-serve-static-core"
|
||||||
import ProxyServer from "http-proxy"
|
import ProxyServer from "http-proxy"
|
||||||
|
@ -116,7 +116,7 @@ export { express }
|
||||||
*
|
*
|
||||||
* Re-exported so plugins don't have to import duplicate copies of the logger.
|
* Re-exported so plugins don't have to import duplicate copies of the logger.
|
||||||
*/
|
*/
|
||||||
export { field }
|
export { field, Level }
|
||||||
|
|
||||||
export const proxy: ProxyServer
|
export const proxy: ProxyServer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue