erickmorales3 / action-logging Goto Github PK
View Code? Open in Web Editor NEWGrails Plugin to store detailed log of controller actions in database
Home Page: https://erickmorales3.github.io/action-logging/
License: MIT License
Grails Plugin to store detailed log of controller actions in database
Home Page: https://erickmorales3.github.io/action-logging/
License: MIT License
Just adding compile "org.grails.plugins:action-logging:1.1.1" in build.gradle is triggering errors. Any suggestion?
Hi,
I think it would be nice to update the README.md and tell developers that the ActionLoggingEvent
is stored in the session. This approach won't work properly in a load balancing scenario without sticky sessions or session clustering. IMO mentioning that it's good enough to avoid a potential refactor
I noticed that you store the ActionLoggingEvent.groovy
instance in the session in order to retrieve in the afterView
and update endTime
and totalTime
.
I don't know if this could be a potential issue in memory at Tomcat level or if you store the session in a database such as MySQL (https://grails.org/plugin/database-session) or Redis (https://grails.org/plugin/redis-database-session) <- this one serializes the whole Session object in a byte array or JSON.
What do you think about storing the ActionLoggingEvent
id
in the session and then retrieve the object from the database in the afterView
?
I'm opening a few issues, hope that's ok.
if (!actionName) {
actionNameValue = "index"
}
Perhaps reading the static defaultAction
first and then fallback to index
would be better
I'm aware that a common use case would be storing the userId from Spring Security.
It would be nice to allow storing other fields from the authentication (such as email or account number) or also if they don't use Spring Security, allow them to plug their own logic to determine this field. It could be a cookie, session variable (in-house security framework), Apache Shiro.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.