1.1 --- a/Logger.cpp Tue Apr 15 22:44:31 2025 +0200
1.2 +++ b/Logger.cpp Tue Apr 15 22:45:25 2025 +0200
1.3 @@ -1,6 +1,6 @@
1.4 /**
1.5 * DJM-Fix
1.6 - * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
1.7 + * Copyright © 2025 František Kučera (Frantovo.cz, GlobalCode.info)
1.8 *
1.9 * This program is free software: you can redistribute it and/or modify
1.10 * it under the terms of the GNU General Public License as published by
1.11 @@ -56,12 +56,15 @@
1.12
1.13 public:
1.14
1.15 - LoggerImpl(std::ostream& output, Level minLevel) : output(output), minLevel(minLevel) {
1.16 + LoggerImpl(std::ostream& output, Level minLevel)
1.17 + : output(output), minLevel(minLevel) {
1.18 }
1.19
1.20 virtual void log(Level level, const std::string& message) override {
1.21 if (level <= minLevel) {
1.22 - output << getTimestamp() << " " << std::setw(8) << toString(level) << ": " << message << std::endl;
1.23 + output << getTimestamp()
1.24 + << " " << std::setw(8) << toString(level)
1.25 + << ": " << message << std::endl;
1.26 }
1.27 }
1.28 };