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

appendOutputTo does not wok with call #45

Open
cluwong opened this issue May 14, 2019 · 1 comment
Open

appendOutputTo does not wok with call #45

cluwong opened this issue May 14, 2019 · 1 comment
Labels

Comments

@cluwong
Copy link

cluwong commented May 14, 2019

$schedule->call(function()
{
   echo 'hello world!';
})->hourly()->appendOutputTo('file');

The output just goes to stdout but not to file. Is this a bug or what is the function to call so that it will output to file?

@kstkn
Copy link
Collaborator

kstkn commented May 14, 2019

In current version (1.1.2) output capture implementation relies on simple command line redirect by adding ">>" or ">" to a command. This will not work for callbacks.

BTW, output capture will be changed in the future version (e.g. #44), maybe we should think about callbacks there as well.

@kstkn kstkn added the question label May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants