Disabling debug logging for freemarker - freemarker

I'm using freemarker to generate emails that are being sent automatically to the users of a web app we're creating. Currently there are a lot of debug statements being generated by freemarker, and when the app goes live the log files will be filled with a bunch of info we don't really want to keep track of. So, how can I turn off all logging for freemarker?
We're developing in JDeveloper 11.1.1.9.0, using WebLogic 10.3.
I've tried looking online, at the below in particular, but to no avail. http://freemarker.624813.n4.nabble.com/disable-logging-td626241.html
Disable freemarker logs

Related

How to connect to api endpoint?

I have been given a small task and was wondering how i connect to an API that feeds data to a live web server and then add this into the app, I have everything ready to
Go but im unsure on how to do this, the file type is XML
Ide - VS2022 - lanuage - VB.net
Thanks
I have got the correct format in postman but now unsure on how to get this into the app to read live stats

OWIN Authentication Failing - Web API

I have some Web API applications that uses OWIN for authentication. Currently they are hooked up to Google and Facebook. I have them installed in multiple environments (local, dev, test, etc). Recently ALL of my applications in my development environment started failing. When trying to authenticate I would get a response back "access_denied". The URL would look like this:
https://{mydevserver}/{mywebapiapp}/#error=access_denied
The same code base works locally as well as in my test environment.
I tried using the same project (just adding redirect uris and orgins) as well as creating a new project.
I also updated my test environment to use the dev project (id and secret).
Nothing seems to have changed on the server recently. But it seems to be environment specific (because multiple applications are affected as well as multiple providers).
Are there any logging techniques I can use to drill down to a more detailed error message? Any tips or hints for what to try next?
The fix was a bit of an odd one. I had to log into my server, open up a browser and connect to a web page (any page). After doing so it started working again.

Parse.com and Logentries

I'm using Parse.com with iOS SDK. I really want to get all Parse logs into a third party service (Logentries) but I have no idea if Parse.com's logs can be exposed at all?
Obviously having log data which periodically gets deleted in Parse is not ideal, plus I can't filter it and an integration with Logentries could be amazing.
I'm referencing a previous unanswered question: How to stream parse logs to a service provider?
Logentries has a special endpoint for logging from AJAX and server-side JS applications. This means that for environments like Parse where using 3rd party libraries is awkward, direct integration is still dead simple- see my fork of #Marco T's gist.
I was successful in pushing logs to Loggly using an edited version of: https://gist.github.com/rogernolan/95ea615164e343b3bc54

Need for creating different Projects in Google API console

I have basically two URL's http://xyzwebsite.com (for Development Testing) and http://abcwebsite.com (For Production). I have a simple Login mechanism where a user can click on Google Plus icon to log in rather than using their Username and Password. I created one Project for Development with obviously different Client ID and different for Production with a separate client ID.
But I tested both the URL's above with the client ID of Development project and it worked fine. I am wondering why there is a need ot having multiple projects in Google API console?
There is no particular need. A single project can have several URLs and client IDs for use.
Some reasons you might use multiple projects include:
Changing project settings in dev without worrying about breaking production
If you have a development script that gets into an endless loop or something it might use up all of the quota and the production app might start throwing errors
You might want clear branding on the dev app that explicitly identifies as not production.
Some unknown reason I can't think of.

Heroku logs cluttered

I just started using Heroku for one of my node apps.
When I run the heroku logs command it is so cluttered that i cant pick out the data I want from all the other information I don't need.
Is there a way to clean up that log output so it's more human friendly?
It's like it just dumps a wall of text at me.
Thanks!
I am using Papertrail add-on on Heroku for viewing the logs.
It has a free plan which is enough for small application. It gives you flexibility for searching your logs by text and time. A browser URL is provided by Papertrail to view the logs, which is convenient to access from mobile also. Adding this add-on to your application is quite simple, no app changes are required. Below filters are available out of the box on its dashboard to view the logs-
All events
Deploys
Dyno state changes
Platform errors
Web app output

Resources