openfrontier / docker-gerrit

Build a Docker image with the Gerrit code review system
Apache License 2.0
196 stars 118 forks source link

[Question] Errors/warnings logging into file. #111

Closed ShonInDim closed 5 years ago

ShonInDim commented 5 years ago

Hello!

For now it's only delete_log, gc_log, httpd_log, import_log, sshd_log, replication_log writing info files, but errors/warnings (if it occurred) returns to console log. Is is possible to write errors/warnings logs to regular error_log file when docker container starts successfully ? or it is writes into error_log only if container start failed ?

gerrit-entrypoint.sh
.....
echo "Something wrong..."
    cat "${GERRIT_SITE}/logs/error_log"

As I understood from docs it could be this way in case of java -jar gerrit.wat daemon --console-log

Send log messages to the console, instead of to the standard log file $site_path/logs/error_log.

Meanwhile gerrit-entrypoint.sh doesn't run such a command.

thinkernel commented 5 years ago

I wonder if this can answer your request?

ShonInDim commented 5 years ago

Yep, I did not notice that passage. Excuse my carelessness.