1.0.3 • Published 6 months ago

@payload-bites/activity-log v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

Activity log

Keep an eye on everything happening in your cms.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/activity-log
  1. 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
1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

8 months ago

1.0.0

8 months ago