diff options
Diffstat (limited to 'server/lib/plugins/plugin-helpers.ts')
-rw-r--r-- | server/lib/plugins/plugin-helpers.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/lib/plugins/plugin-helpers.ts b/server/lib/plugins/plugin-helpers.ts new file mode 100644 index 000000000..36d08d84a --- /dev/null +++ b/server/lib/plugins/plugin-helpers.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | import { PluginModel } from '@server/models/server/plugin' | ||
2 | import { PeerTubeHelpers } from '@server/typings/plugins' | ||
3 | |||
4 | function buildPluginHelpers (npmName: string, plugin: PluginModel): PeerTubeHelpers { | ||
5 | const logger = buildLogger(npmName) | ||
6 | |||
7 | return { | ||
8 | logger | ||
9 | } | ||
10 | } | ||
11 | |||
12 | export { | ||
13 | buildPluginHelpers | ||
14 | } | ||
15 | |||
16 | // --------------------------------------------------------------------------- | ||
17 | |||
18 | function buildLogger (npmName: string) { | ||
19 | return buildLogger(npmName) | ||
20 | } | ||