jhipster - log set to error but non error logs show - jhipster

I have set the log level to Error on all packages of my webapp (in admin part of the webapp) but I am still getting non error logs in stdout file.
Is it normal?
Additionnal question : how can I add the date and time in the error logs? Is it configurable in my jhipster project?
Thank you.

There's nothing special about logging in JHipster, it just uses spring-boot logging on top of logback, just read spring docs and logback manual.
There are 2 files to look at:
src/main/resources/logback-spring.xml for app execution
src/test/resources/logback-test.xml for tests execution

Related

How to save logs of Node.js running in CyberPanel?

I am currently running a Cyber Panel v2.1 + Ubuntu + Node v14.4 on an EC2 T2.Small Instance. Using the context menu in the Open Lite Speed Interface, I run a Node.JS Website. However, their are issues with its functionality, particularly when I try to require the Mongoose or MongoDB Package.
As of now, I don't have a way to see the error logs or console logs that are generating, only the access logs. Is their a way I can configure something on either CyberPanel or Node.Js that I can get the console logs & the access logs of the project so that I can fix the issue?
You should be able to enable console log by setting environment variable
LSNODE_CONSOLE_LOG=</path/to/your/console/log/file>
when you configure the application.
if you have root access then you should be able to see the node servers and your application level logs under /usr/local/lsws/logs/.

Application Insights dependencies not shown

After that my Application Insights Map shows my dependency calls from yesterday i don't see any dependencies in the map and no calls in the analytics page.
I haven't changed my app. Even my page visits aren't on the application map.
What can be the reason that i don't see this part and only my rest api is logging?
You probably have not configured your application to use ApplicationInsights
Set up Application Insights for your ASP.NET website
Also check if your dependency is up to date. It is currently in version 2.4, so you can use the following features:
Live Metrics Stream
Make sure the only in your bin folder exists the application.config file.

JHipster Mini Book Tuto fail, like other

Trying to setup an app with JHipster. Every tutorials I follow I have errors and failures.
Whatever options I select I got errors on my project.
Following the JHipster MiniBook procedure I have error like this on my IDE at start:
http://imgur.com/bWdek5W
And when I follow the directives to page 24 and try to run
./gradlew bootRun
I got a build failed: http://imgur.com/jFeJEQ6
I don't know what I'm doing wrong. I follow step by step the book, or other tutorials. Something must be wrong configured on my computer.
Any idea ?
Just looking at the error messages which are shown:
On the first screenshot you have configured your IDE to use Java 1.6 source code. JHipster is using Java 1.8, so the lambda expressions (which are new in Java 1.8) cannot be compiled.
On the second screenshot you have configured JHipster to use an external database. But you have not followed the documentation, which tells you to configure that external database in your application-dev.yml configuration file (and to start the database, of course!)

using java service wrapper and log4j

I've been getting a problem to use java service wrapper and log4j, where I have the log service and another log (of the application) using log4j configuration.
The problem is that my service log (wrapper) is also writing the information in my log4j log, how can I solved that?
Thanks.

Using ServiceStack v4 with Elmah

Is there any up-to-date guide that will help with integration of Elmah into ServiceStack for logging? Anything I look, like this question is out of date since methods changed.
Ideally I would like to receive error emails like described on this link, but for start I would just love to be able to go to elmah.axd and see all unhandled errors.
I've already installed Elmah and configured web.config (which I've done using NuGet). Now I'm stuck as to what to do after doing Install-Package ServiceStack.Logging.Elmah - most of old tutorials say that I need to use NLog (which I don't want to do - since I don't want multiple logging components).
Thanks for the help!
This post should cover it: http://blog.elmah.io/logging-to-elmah-io-from-servicestack/
The post explains how to integrate with the elmah.io logger, but the method is the same for other types of ErrorLog implementations for ELMAH. Instead of installing the elmah.io NuGet package, you can install the ELMAH package, which gives you a default set of configuration in your web.config using the memory error log.

Resources