This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/collaboration/logger.js

20 lines
595 B
JavaScript

// @flow
import Logger from "../logging/logger";
export default class CollaborationLogger {
async onCreateDocument(data: { documentName: string }) {
Logger.info("collaboration", `Created document "${data.documentName}"`);
}
async onConnect(data: { documentName: string }) {
Logger.info("collaboration", `New connection to "${data.documentName}"`);
}
async onDisconnect(data: { documentName: string }) {
Logger.info("collaboration", `Connection to "${data.documentName}" closed`);
}
async onUpgrade() {
Logger.info("collaboration", "Upgrading connection");
}
}