1.0.3 • Published 6 months ago
@payload-bites/activity-log v1.0.3
Activity log
Keep an eye on everything happening in your cms.
Quick start
- Install the plugin:
pnpm add @payload-bites/activity-log- Add the plugin to your
payload.config.ts:
// ...
import { activityLogPlugin } from "@payload-bites/activity-log";
export default buildConfig({
// ...
plugins: [
// ...
activityLogPlugin({
// ...
access: {
read: (args) => args.req.user.role === "admin",
},
collections: {
posts: {},
pages: {
// ...
enableUpdateLogging: false,
enableIpAddressLogging: false,
enableDeviceInfoLogging: false,
},
},
globals: {
footer: {},
},
}),
],
});Defaults
For defaults, refer to defaults.ts.
Options
For options, refer to types.ts.
Roadmap
- Capture user logins and logouts
- Record failed login attempts
- Custom fields in activity log collection
- Export to CSV or JSON