mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 08:37:56 +00:00
27 lines
506 B
TypeScript
27 lines
506 B
TypeScript
|
import { InstallOptions, Plugin } from '@nocobase/server';
|
||
|
import logger from './resourcer/logger';
|
||
|
|
||
|
export class PluginLoggerServer extends Plugin {
|
||
|
afterAdd() {}
|
||
|
|
||
|
beforeLoad() {}
|
||
|
|
||
|
async load() {
|
||
|
this.app.resource(logger);
|
||
|
this.app.acl.registerSnippet({
|
||
|
name: `pm.${this.name}.logger`,
|
||
|
actions: ['logger:*'],
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async install(options?: InstallOptions) {}
|
||
|
|
||
|
async afterEnable() {}
|
||
|
|
||
|
async afterDisable() {}
|
||
|
|
||
|
async remove() {}
|
||
|
}
|
||
|
|
||
|
export default PluginLoggerServer;
|