Question is marked as Javascript subject, however it could be interesting for other languages too. So I'll answer for generic case.
The biggest drawback of logging system over-usage is that it may deplete disk quota, thus crashing process / operating system / computer. So use it wisely - log only what you need and when you need. And from time to time - check computer for unnecessary or too old logs and purge them from the storage.