Logs (Value Only)
Each new log will be given a SNOWFLAKEID which can be used to retrieve the information individually.
Usage:
this.db.logsSet({
action: "<The Action To LOG>",
userID: "<The User of the Action>",
timestamp: Date.now(),
ip: req.ip
})Returns:
ID: SnowFlake
Each log is stored in the logs table which can be accessed by:
Retreive Values
this.db.logsGet(<SNOWFLAKEID>)RETURNS:
{ action: 'ACTION', userID: 'userID', timestamp: '<TIMESTAMP>', ip: '<192.168.15.1>' }
List Logs
this.db.logs(size, page)Last updated