Comments (3)
Hm - could you elaborate a little more? I currently do not get the point.
You have an application that logs to MySQL, but you want certain log types (or specific entries) not to log actual values but obfuscated data?
If this is true, maybe a custom hook/callback function before actually inserting the log which can modify the log entry may do the job?
from monolog-mysql.
i did a processor if that is what you mean and it works well. However I was looking for something more less intrusive but i think i am good with what i have done. For a second thought it could live in a library to be shared.
from monolog-mysql.
Yeah, processor was the word I was looking for. I believe it should not be the responsibility of the actual handler to modify log entries. Monolog provides a convenient way to do this using the available processors or the possibility to create your own.
I thing this is the way to go, what you obviously already did.
from monolog-mysql.
Related Issues (20)
- Logging fails if the caller does not supply all additional fields HOT 6
- Data should not be deleted when additional field is not provided anymore HOT 1
- "PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number" when used with Silex and Monolog Service Provider HOT 2
- SQLSTATE[HY093]: Invalid parameter number: parameter was not defined HOT 3
- Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens HOT 2
- Implicit committing may interrupt transactions HOT 3
- additional fields types
- How to configure custom types for custom fields HOT 1
- Declaration of MySQLHandler\MySQLHandler::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void HOT 5
- Working example
- Include Level name HOT 1
- Dropping or getting around the PDO type hint in MySQLHandler::__construct()? HOT 1
- errors in handler HOT 1
- information to logs table HOT 2
- PDOStatement::execute(): SQLSTATE[HY093] HOT 4
- Multiinsert query issue HOT 2
- PHP 5 Support HOT 3
- Write 'extra' passed by Processors to db HOT 2
- Create indexes HOT 6
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 monolog-mysql.