Skip to content

Is it possible to log to /var/log/syslog? #1534

Answered by erikn69
adampatterson asked this question in Q&A
Discussion options

You must be logged in to vote

Use appendOutputTo()

$schedule->command('backup:clean')->hourly()->appendOutputTo(base_path('storage/backup/log.txt'));
$schedule->command('backup:run')->hourly()->appendOutputTo(base_path('storage/backup/log.txt'));

Or a custom notifications to logger

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adampatterson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants