Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

stevenmanton
Copy link

Issue #, if available:

By default, the logging level for torchserve is INFO, 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 in requirements.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 for requirements.txt). If it finds that file, it uses it for the logging configuration passed to torchserve. If it doesn't, it uses the default.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-pytorch-inference-toolkit-pr
  • Commit ID: e3dc648
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-pytorch-inference-toolkit-pr
  • Commit ID: e4219de
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-pytorch-inference-toolkit-pr
  • Commit ID: bec0650
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@stevenmanton
Copy link
Author

@icywang86rui Here's another PR for you to take a look at. Thank you!

@stevenmanton
Copy link
Author

@schenqian would you mind taking a look at this PR? Thanks!

@j-adamczyk
Copy link

+1, this would be very useful

@beatrizdemiguelperez
Copy link

This looks very useful!

@maaquib maaquib requested review from lxning and rohithkrn July 25, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants