π Gaudit
Welcome to Gaudit, an elegant and powerful auditing package for Go applications! With Gaudit, you can effortlessly track changes, log activities, and maintain a detailed audit trail of your data.
Β
π¦ Features
- Comprehensive Auditing: Automatically log changes for insert and update operations.
- Flexible Hooks: Use pre-defined hooks or create your own to customize auditing behavior.
- Rich Metadata: Capture essential details such as user actions, timestamps, and IP addresses.
- Easy Integration: Seamlessly integrate with your existing Go applications.
- Extensible: Extend the package with your own custom functionalities.
π Installation
To get started with Gaudit, install it using Go modules:
go get github.com/its-own/gaudit
π Usage
Here's a quick example of how to use Gaudit in your application:
package main
import (
"context"
_ "github.com/its-own/gaudit"
)
func main() {
// write your own code
}
π§ Configuration
Customize Gaudit to fit your needs. You can configure logging settings, output formats, and more in the config.go
file.
// Example of setting configuration
gaudit.SetConfig(gaudit.Config{
LogLevel: "debug",
// other configurations...
})
π Documentation
coming soon
π§ͺ Testing
Gaudit comes with a robust set of tests to ensure stability. Run the tests with:
go test ./...
π Contributing
We welcome contributions! If you'd like to contribute to Gaudit, please fork the repo and create a pull request. For larger changes, please open an issue first to discuss.
- Fork the repository
- Create a new branch (
git checkout -b feature/my-feature
)
- Make your changes
- Commit your changes (
git commit -m 'Add some feature'
)
- Push to the branch (
git push origin feature/my-feature
)
- Open a Pull Request
For any questions, suggestions, or feedback, feel free to reach out via Issues or contact us directly at razibulhasan.mithu.com.
π€ License
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for considering Gaudit for your auditing needs! We hope it enhances your application's capabilities. Happy coding! π