It could be one config that selects logger module callback (also accept Lists). By default it could save to files (like I described), but instead of this it could send email or do both.
defmodule Example.MyLogger do
def log_callback(db_item) do
# read config + format log based on config + save to log file
# or:
# read config + format log based on config + send to 3rd party site
# or:
# read config + format log based on config + send by e-mail
end
end
Can you link to tutorial and/or example project?
I found this example of custom logger implementation.
I want to combined Logger and OTP related messages into a single interface, to easily manage them.
I think about fast respond for production bugs or split console output into separated log files in developer mode, so we do not need to scroll and search data in more advanced cases (bugs + debugs + deprecated warning + Ecto messages).
Thanks, I missed that. I need to check what Logger returns (check if it good splits data, so I can read and fill to my example table without parsing plain String error messages). Edit: I also updated my post with this idea (added source Atom, so we can pattern match if logs are going from Ecto or not, but at now I donāt know if itās possible - I need to check that).
A list of Open Source libraries and ideas for Elixir. See where your help and knowledge are needed or add your propositions for new libraries.
Issues with labels like:
Idea
Research
In progress
Initial release
Enhancing - between Initial release and Version 1.0
Version 1.0 - like first version with prepared public API Note: of course there is also work on next versions (bigger than 1.0), but I think itās offtopic
Need hands
Need knowledge
Need fix deprecations - a library created for old version of Elixir/OTP
Need rework - in case when used old API and new better (performance) is available
Need next version of dependency
Need next version of Elixir - to use some new Elixir public API
I have thought a couple of times in the past about building a website that allows for the discovery of open source projects that require additional help. I believe this would help the maintainers and lower the bar for new contributors. I have heard a few times that it can be a struggle to find entry level contributions to make.
I think before we go to far we need some more active projects and contributors ideally.
While at Elixir Conf, I spoke to an engineer who is who is on Googleās Ruby team about my libraries; my hope would be that they might at some point be christened the official Google libraries for Elixir, but only time will tell.
If youāre looking to use Google APIs in Elixir, please check out the above linked libraries and let me know what you think.
What triggered my initial thought about a Google API client was the need to access my Google Drive storage and I couldnāt see any libraries for that. I havenāt looked at this in great detail but at a glance it seems that Google appear to auto generate their client APIās (Ruby Client) using their Discovery Service.
Iām interested in support online storages too, but not in near future.
Think about CMS with upload videos from and to Google Drive or M$ OneDrive.
I would love to use multiple storages with same API (in Elixir) and same with Payments. Just select a payment type and do what you want!
I am a self taught programmer and I think have just surpassed newbie level So donāt be harsh about my idea.
I find that there is a need for some aggregated Auth/User/Account library and I am not talking about competing with Guardian, but building on top of it.
We can all build email/password functionality with available tools quite easily. But most of real world projects require either phone-based authentication mechanism or social-based and sometimes both (for instance if you want to connect facebook account on top of already existing phone-based authentication). And there are quite a bit of stuff you need to take care of in both of these cases. For instance in phone-based authentication system one might want to
store normalized contacts from multiple platforms
when someone registers inside the system, get friends/contacts notified
when connecting facebook account we need to somehow integrate that with other parts
etc
For someone it might be easy, but not for me. I have been developing auth and account umbrella apps as part of my first elixir project for about 3 months now and spent quite a lot of time on these. I wished that there was a library that makes it easy to do or may be a set of libraries. Otherwise I am sure that not only me but a lot of other newbies and small groups of developers are just rebuilding this functionality over and over again.
So if anyone would like to help me build that I am happy to help and share everything I have on this problem.
Add library to integrate with social account is good idea, but rest (for example notify friends) needs to be designed in program that use this library. Otherwise privacy policy would depend on library restrictions (for example someone want keep user privacy and donāt allow that feature).
It could be special topic for that: āMissing support 3rd party servicesā.
At now we have:
Storage services (like Google Docs)
Payment services (like PayPal)
Social/Auth services (like Facebook)
Tip: As you can see we have special rules for ordered list in posts on this forum