Write to disk log files or graphs

I want to enable logging to disk (all topics: info, warning, error, critical) and store graphs (interface and resources) on all Mikrotik devices in my network.
How is this affecting performance (since i know that writing to flash is slow)?
May i end up with damaged units in case of power outages while the unit is writing logs or graphs on disk?

Is there any recommendation for writing to disk (for ex only for debugging purposes and not for everyday use) ??