Log4jmemes.com: for those of us that need a laugh
log4jmemes.com
Log4jmemes.com: for those of us that need a laugh
1–10 of 115 posts
Re: Log4jmemes.com: for those of us that need a laugh
#2Re: Log4jmemes.com: for those of us that need a laugh
#3Re: Log4jmemes.com: for those of us that need a laugh
#4Re: Log4jmemes.com: for those of us that need a laugh
#5Re: Log4jmemes.com: for those of us that need a laugh
#6Re: Log4jmemes.com: for those of us that need a laugh
#7I've always done this, never have I used a library for this, because:
- running manually? >myapp.log 2>&1
- using systemd? use journalctl
- using docker/kubernetes? capture automatically the stdout/stderr of your containers and pipe them through logstash or something
Real question: why would an application need to know where its logs go? This is not in the business perimeter, but the ops perimeter. Am I wrong?EDIT:
Most responses are about configuring logging level, output format, etc... This can be done with a print-based approach without sending a request to an external service (which would need to trust you and your inputs).
Example: Python's default logging module.
Still, thank you for your insightful answers :)
Re: Log4jmemes.com: for those of us that need a laugh
#8Re: Log4jmemes.com: for those of us that need a laugh
#9The one about using print/console.log/whatever lol. I've always done this, never have I used a library for this, because: - running manually? >myapp.log 2>&1 - using systemd? use journalctl - using docker/kubernetes? capture automatically the stdout/stderr of your containers and pipe them through logstash or something Real question: why would an application need to know where its logs go? This is not in the business…
Also legacy; before systemd/docker/kubernetes, applications had to send to syslog themselves.
Re: Log4jmemes.com: for those of us that need a laugh
#10The one about using print/console.log/whatever lol. I've always done this, never have I used a library for this, because: - running manually? >myapp.log 2>&1 - using systemd? use journalctl - using docker/kubernetes? capture automatically the stdout/stderr of your containers and pipe them through logstash or something Real question: why would an application need to know where its logs go? This is not in the business…
You are not a real Java Programmer then.