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

Error Logs Put files into script folder #5

Open
vanyossi opened this issue May 14, 2013 · 0 comments
Open

Error Logs Put files into script folder #5

vanyossi opened this issue May 14, 2013 · 0 comments

Comments

@vanyossi
Copy link

having tmp files is good for things to forget, but for error logs might be a good idea to keep them around.

compile messages are not always useless but everything is a bit too much.
I would save all messages to the compilscripts folder. For that I found a good solution on the web. I tried to adapt to be smaller, but It didn't quite work so I leave it as I found it

  • Get script directory
    scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  • Log errors
    make -j$numCores 2>> $project_error.log
  • Log everything
    make -j$numCores 1>> /tmp/$project_log.log 2>> $scriptDir/$project_error.log

That logs in a very basic way. Maybe a developer could help us get a better solution.

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

No branches or pull requests

1 participant