-
Notifications
You must be signed in to change notification settings - Fork 247
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
[question] Logging to File, Syslog or Email #64
Comments
Hello, @nicutor $ ./your-script.sh 2>log-file.txt Because all my test success( <X_X>:bash-oo-framework$ ./test.sh
I'm blue...
[DEBUG] [test.sh:19] Play me some Jazz, will ya? 🎷
Something bad happened.
This will be printed to STDERR, no matter what.
0is0[feature/japanese-docs]
<X_X>:bash-oo-framework$ ./test.sh 2>log.txt
I'm blue...
0is0[feature/japanese-docs]
<X_X>:bash-oo-framework$ cat log.txt
[DEBUG] [test.sh:19] Play me some Jazz, will ya? 🎷
Something bad happened.
This will be printed to STDERR, no matter what. ++ I'm not a member of maintainer, not good at this framework, so this might be wrong. I'm happy if this helps you. |
@Cj-bc Thank you for your help, but I am trying to avoid that way. Based on documentation, I've already find a way, but, if there is any better example of how to log to file, syslog or email, please let me know.
|
@nicutor oh, I see. |
Hi,
I would like to start using this framework instead of log4sh and I want to kindly ask you if there is any example or if somebody can guide me on how to log to a file, syslog or send the logs thru email?
Thank you.
The text was updated successfully, but these errors were encountered: