You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by GitBox <gi...@apache.org> on 2023/02/12 10:01:43 UTC

[GitHub] [streampipes] flomickl created a discussion: How to set up logger in processor

GitHub user flomickl created a discussion: How to set up logger in processor

Related to #1262

I realized that I did not get any log output to my debug console anymore

I initialized the logger via

`private static final Logger LOG = LoggerFactory.getLogger(LatLngToJtsPointProcessor.class);`


With following code, I did not get any output at all
`LOG.debug("Created Geometry: " + geom.toString());` 

This is an "older code" so pretty sure that this was working in the past.

Is there a new approach with the 1 class processor?
Or do I miss additional setting requirements?

I looked in other processors but see no major differences because I am pretty certain that there is no output as well.

Example code here:
https://github.com/apache/streampipes/blob/238c7cd082f132f03498ab4ff4ff8d50132d78f8/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latlngtojtspoint/LatLngToJtsPointProcessor.java#L105



GitHub link: https://github.com/apache/streampipes/discussions/1273

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] tenthe added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: How to set up logger in processor

Hi @flomickl,
your logging code looks good. I suspect this is related to the changes in this PR #1267.

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-4954956

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] flomickl added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user flomickl added a comment to the discussion: How to set up logger in processor

Ah!  Good to know.
Can you describe how to set it up in IntelliJ?
I tried it as environment variable, but it is not working.

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-5001388

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] tenthe added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: How to set up logger in processor

Hi, you can set the log level with the following environment variable in IntelliJ:
`logging.level.root=WARN`.
Maybe we can also include this information in the description of the developer setup in the wiki.

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-5007443

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] dominikriemer added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user dominikriemer added a comment to the discussion: How to set up logger in processor

Yes, our default log level is `info`. You can change the level by providing the environment variable (I think it's `-Dlogback.debug=true`) or change the logback configuration file.

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-4974546

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] flomickl added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user flomickl added a comment to the discussion: How to set up logger in processor

I started a new discussion about this general topic here  #1325

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-5052340

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] flomickl added a comment to the discussion: How to set up logger in processor

Posted by GitBox <gi...@apache.org>.
GitHub user flomickl added a comment to the discussion: How to set up logger in processor

ah cool.
It is working as expected
I added it here https://cwiki.apache.org/confluence/x/9YoODg

GitHub link: https://github.com/apache/streampipes/discussions/1273#discussioncomment-5052084

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org