This repository includes the required classes to enable logging of the HOSIT framework inside databases.
Clone the repository:
git clone https://github.com/das-th-koeln/hosit-logger
The logging function itself is empty on purpose. You have to include your own database writing methods inside class/logger.js to make this work (see the TODOs inside the code).
We used MongoDB on our own solution but the logging functions can be applied to any other database system as well.
-
Import module:
// Import module const HOSIT = require("hosit-browser")
-
Import logger class:
const Logger = require("./class/logger");
-
Now you can initiate a new Browser session log:
global.logger = new Logger(...);
All functions will then be logged into the database, if the
global.logger
object exists.
This project is licensed under the MIT License (LICENSE).