Comments (6)
Do you want a custom name for audit tables?
from audit4j-core.
No, I would like have opportunity to set only schema name for table. For example if I use postgresql then your plugin creates table in public schema and full name of audit table looks like "public.audit". And I need to have opportunity to change schema name to look like this "custom_schema.audit".
Thanks
from audit4j-core.
You can specify the schema parameter in the connection url.
jdbc:postgresql://localhost:5432/mydatabase?currentSchema=custom_schema
Please refer below links.
https://jdbc.postgresql.org/documentation/94/connect.html#connection-parameters
from audit4j-core.
Yep, as a workaround It can be done, but in our app, we have several schemas simultaneously and we use ORM (in persistence layer) and we wouldn't like to set exact schema name in connection url. We would like to have more flexible solution to set schema name (and as optional - to set table name).
Can you add additional parameter in DbHandler definition?
Thanks.
from audit4j-core.
Yes. This is possible. We will add this to next release, however we have to test it before release a major release. Appreciate if you can add this feature as a contribution. The source code is pretty simple. We do accept pull requests.
from audit4j-core.
Fixed in 2.5.0
from audit4j-core.
Related Issues (20)
- Throw statement in YAMLConfigProvider drops exception on floor
- How to extends the Customizable Layout (example add ${roles}) HOT 1
- Dependencies number HOT 3
- Success Call or Failure Call
- Update @AuditField documentation HOT 3
- Errors after running Application HOT 7
- 2.5.0 Config with YAML file CustomizableLayout : pb properties dateFormat and template HOT 1
- Audit4j still uses older group of javassist HOT 2
- Initialization vectors should be randomly generated for proper security guarantees.
- Timestamp format for database auditing HOT 1
- @Audit annotation does not work HOT 4
- Support for loading config file from user home directory HOT 1
- It is not possible to change the prefix of the Audit file (FileAuditHandler auditFilePrefix not taken in account)
- Support for wildcard file filter
- isJDK_N_OrHigher() method having issue with Java 10 HOT 5
- Java 10 compatibility Issue HOT 14
- audit4j-core 2.6.0 with Maven HOT 1
- Bug with async mode is always true
- ZeroCopyFileWriter leaks file handlers
- Webiste audit4j.org down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audit4j-core.