Added output decorator (can be overwritten).

- Logger messages can be now immediately pushed to output (without waiting for destruction).