Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoggerAdapter for logs DB - aggregate logs from multiple servers #391

Closed
peterdotjs opened this issue Feb 12, 2016 · 11 comments
Closed

LoggerAdapter for logs DB - aggregate logs from multiple servers #391

peterdotjs opened this issue Feb 12, 2016 · 11 comments

Comments

@peterdotjs
Copy link
Contributor

We currently use a LoggerAdapter which uses FileLoggerAdapter by default. FileLoggerAdapter simply logs locally to a logs folder. It would be great to have an adapter where the logs are sent to a DB to handle multiple servers.

@peterdotjs peterdotjs self-assigned this Feb 12, 2016
@boardmain
Copy link

hi can you provide an example on how you use logger?
im trying to understand from documentation but it is realy bad

@peterdotjs
Copy link
Contributor Author

@peterdotjs peterdotjs removed their assignment Mar 4, 2016
@boardmain
Copy link

im trying to use it with the loggerAdapter option from the example parse server app.. i'm missing something (first time i use parse server)

@drew-gross
Copy link
Contributor

This doesn't seem like a highly requested feature. Moving to long term.

@montymxb
Copy link
Contributor

montymxb commented Sep 10, 2017

Over a year old, going to close this out as there hasn't been any talk about putting this in. Seems like a good idea however. If this is still of interest let us know and we can try and put this into a more 'active' phase and get a PR going!

@trylovetom
Copy link
Contributor

I am interested in this Issue.
It's might be of use to me on cluster of parse-server.
Maybe I can do it.
Does anyone agree?

@montymxb
Copy link
Contributor

montymxb commented Jan 9, 2018 via email

@flovilmart
Copy link
Contributor

I don't think it's reasonable to pursue it, as you'd have to integrate a centralized logger in any case, which can be done through a custom adapter.

@trylovetom
Copy link
Contributor

@flovilmart
OK, I got it. Maybe I can make a custom logger adapter replace it.
Could you please give me some advice?
This is my first time to make a adapter of parse-server.

@flovilmart
Copy link
Contributor

The logger adapter is quite simple, it jhas to implement 1 method for writing (log()) and one for reading, (query)

see: https://github.com/parse-community/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js#L11

You can also look into the default logger here as it provides a decen example of what's exepected.

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
@parse-github-assistant
Copy link

The label type:feature cannot be used in combination with type:improvement.

@parse-github-assistant parse-github-assistant bot removed the type:feature New feature or improvement of existing feature label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants