Compare commits

..

No commits in common. 'd6f3d581ef5596f873697a44123791fc8bcabebe' and 'ba90b9ca63836832873a41156c002b83e3be78fb' have entirely different histories.

@ -8,13 +8,11 @@ class Log {
static Logger _logger = Logger();
factory Log() {
final logFile = File("/var/log/proxmox-dash/proxmox-dash.log");
if (!logFile.existsSync()) {
logFile.createSync(recursive: true);
}
_logger = Logger(
output: FileOutput(file: logFile),
output: MultiOutput([
ConsoleOutput(),
FileOutput(file: File("/var/log/proxmox-dash/proxmox-dash.log")),
]),
level: Level.info,
);
return _instance;

@ -32,11 +32,7 @@ File blFile() {
}
Future<void> setBlFile(String content) async {
try {
await blFile().writeAsString(content);
} catch (e) {
Log().error("Cannot set backlight: ${e.toString()}");
}
}
Widget screenActivator() {

Loading…
Cancel
Save