简体   繁体   中英

Is it safe to delete laravel.log?

I found out that laravel.log took half of the space in my hosting. Since I'm using shared hosting, is it safe to just delete it from file manager? Is it true that it will be created if it's not there? Thank you

Yes it is. I recommend setting up a third-party logging service for production, so you can get notified of critical notifications directly, and not use disk space in (most of the time) irrelevant logs.

We only use the laravel.log in development environments, and it is properly .gitignore(d) in the repo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM