-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom log4j.properties for torchserve #103
base: master
Are you sure you want to change the base?
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@icywang86rui Here's another PR for you to take a look at. Thank you! |
@schenqian would you mind taking a look at this PR? Thanks! |
+1, this would be very useful |
This looks very useful! |
Co-authored-by: Aaqib <[email protected]>
Issue #, if available:
By default, the logging level for
torchserve
isINFO
, which can create a ton of logs.#83
Description of changes:
There is a hacky workaround where you can fork this repo, change the
log4j.properties
, and install that fork inrequirements.txt
, but the changes in this PR support a more elegant solution.The code simply checks the code directory for
log4j.properties
(in exactly the same way it looks forrequirements.txt
). If it finds that file, it uses it for the logging configuration passed totorchserve
. If it doesn't, it uses the default.