Functions | |
| void | log_msg (string message, bool highlight=false) |
| void | log_error (string message, bool highlight=false, bool is_warning=false) |
| void | log_debug (string message) |
| void | log_to_file (string message, bool highlight=false) |
Variables | |
| DataOutputStream | dos_log |
| string | err_log |
| bool | LOG_ENABLE = true |
| bool | LOG_TIMESTAMP = false |
| bool | LOG_COLORS = true |
| bool | LOG_DEBUG = false |
| bool | LOG_COMMANDS = false |
| void TeeJee.Logging.log_debug | ( | string | message | ) |
Definition at line 118 of file TeeJee.Logging.vala.
References dos_log, Error, LOG_DEBUG, log_debug(), LOG_ENABLE, log_msg(), and TeeJee.Misc.timestamp().
Referenced by Main.add_app_exclude_entries(), AppExcludeEntry.add_app_exclude_entries_from_home(), AppExcludeEntry.add_app_exclude_entries_from_path(), Main.add_default_exclude_entries(), RestoreDeviceBox.add_device_combo(), CronTab.add_script_file(), MainWindow.apply_language_env(), SnapshotRepo.auto_remove(), Device.automount_udisks(), Device.automount_udisks_iso(), SnapshotRepo.available(), BackupBox.BackupBox(), BackupDeviceBox.BackupDeviceBox(), BackupFinishBox.BackupFinishBox(), BackupWindow.BackupWindow(), AsyncTask.begin(), BootOptionsBox.BootOptionsBox(), BootOptionsWindow.BootOptionsWindow(), Main.check_btrfs_layout_system(), Main.check_btrfs_version_capabilities(), Main.check_btrfs_volume(), Main.check_dependencies(), SnapshotRepo.check_status(), Main.clean_logs(), Main.cleanup_unmount_devices(), AppExcludeEntry.clear(), BootOptionsBox.cmb_grub_dev_select_default(), Main.create_exclude_list_for_backup(), Main.create_exclude_list_for_restore(), Main.create_pre_restore_snapshot_btrfs(), Main.create_restore_scripts(), Main.create_snapshot(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_btrfs(), SnapshotRepo.create_symlinks(), CronTab.crontab_read_all(), Main.delete_begin(), DeleteBox.delete_snapshots(), Main.delete_thread(), DeleteBox.DeleteBox(), DeleteFinishBox.DeleteFinishBox(), DeleteWindow.DeleteWindow(), BastionGuardImport.TimeshiftImporter.detect(), Main.detect_encrypted_dirs(), Subvolume.detect_subvolumes_for_system_by_path(), Main.detect_system_devices(), EstimateBox.estimate_system_size(), Main.estimate_system_size(), EstimateBox.EstimateBox(), ExcludeAppsBox.ExcludeAppsBox(), ExcludeBox.ExcludeBox(), ExcludeListSummaryWindow.ExcludeListSummaryWindow(), ExcludeMessageWindow.ExcludeMessageWindow(), TeeJee.ProcessHelper.exec_user_async(), AsyncTask.execute(), Main.exit_app(), Device.find_child_devices(), Device.find_child_devices_using_dmsetup(), AsyncTask.finish(), FinishBox.FinishBox(), Main.fix_crypttab_file(), Main.fix_fstab_file(), SnapshotRepo.from_device(), SnapshotRepo.from_null(), SnapshotRepo.from_path(), SnapshotRepo.from_uuid(), AppExcludeEntry.get_apps_list(), Device.get_block_devices_using_blkid(), Device.get_block_devices_using_lsblk(), Main.get_btrfs_version_array(), Device.get_disk_space_using_df(), TeeJee.ProcessHelper.get_euid_of_process(), Device.get_filesystems(), Device.get_mounted_filesystems_using_mtab(), TeeJee.ProcessHelper.get_process_parent(), Main.get_restore_messages(), SnapshotRepo.has_btrfs_system(), SnapshotRepo.has_snapshots(), SnapshotRepo.has_space(), Main.import_timeshift_config_if_available(), IconManager.init(), MiscBox.init_date_format_option(), SnapshotRepo.init_from_device(), Main.init_mount_list(), AppConsole.init_mounts(), Main.initialize_repo(), BackupWindow.initialize_tab(), DeleteWindow.initialize_tab(), RestoreWindow.initialize_tab(), CronTab.install(), SmbMount.is_mounted_at(), TeeJee.JsonHelper.json_get_bool(), TeeJee.JsonHelper.json_get_int(), TeeJee.JsonHelper.json_get_string(), TeeJee.JsonHelper.json_get_uint64(), SmbMount.list_active_mounts(), Main.load_app_config(), MainWindow.load_css(), MainWindow.load_language_preference(), SnapshotRepo.load_snapshots(), MainWindow.load_theme_preference(), log_debug(), Device.luks_lock(), Device.luks_unlock(), Main.Main(), MainWindow.MainWindow(), AppConsole.map_devices(), MiscBox.MiscBox(), Device.mount(), SmbMount.mount(), Main.mount_target_devices(), RsyncLogBox.open_log(), AppConsole.parse_arguments(), RsyncTask.parse_log(), BastionGuardImport.TimeshiftImporter.parse_snapshot(), AsyncTask.pause(), AsyncTask.prepare(), AsyncTask.print_app_status(), Device.print_device_disk_space(), Device.print_device_list(), Device.print_device_mounts(), Subvolume.print_info(), Main.query_subvolume_id(), Main.query_subvolume_info(), Main.query_subvolume_quota(), AsyncTask.read_exit_code(), RestoreDeviceBox.refresh(), Subvolume.remove(), SnapshotRepo.remove_untagged(), RestoreBox.restore(), Subvolume.restore(), Main.restore_current_console(), Main.restore_current_gui(), Main.restore_execute_btrfs(), Main.restore_execute_rsync(), Main.restore_other_console(), Main.restore_other_gui(), Main.restore_snapshot(), RestoreBox.restore_thread(), RestoreBox.RestoreBox(), RestoreDeviceBox.RestoreDeviceBox(), RestoreExcludeBox.RestoreExcludeBox(), RestoreFinishBox.RestoreFinishBox(), RestoreSummaryBox.RestoreSummaryBox(), RestoreWindow.RestoreWindow(), AsyncTask.resume(), RsyncLogBox.RsyncLogBox(), RsyncLogWindow.RsyncLogWindow(), Main.run_post_backup_hooks(), Main.save_app_config(), ExcludeBox.save_changes(), Main.save_exclude_list_for_backup(), Main.save_exclude_list_for_restore(), Main.save_exclude_list_selections(), MainWindow.save_language_preference(), MainWindow.save_theme_preference(), ScheduleBox.ScheduleBox(), AppConsole.select_grub_device(), AppConsole.select_snapshot(), AppConsole.select_snapshot_device(), AppConsole.set_locale(), AppGtk.set_locale(), SettingsWindow.SettingsWindow(), SetupWizardWindow.SetupWizardWindow(), SnapshotBackendBox.SnapshotBackendBox(), AppConsole.start_application(), TimeoutCounter.start_counter_thread(), AsyncTask.stop(), BackupDeviceBox.try_change_device(), BackupDeviceBox.try_change_smb_share(), Main.try_select_default_device_for_backup(), SnapshotRepo.unlock_and_mount_device(), SnapshotRepo.unlock_and_mount_devices(), SnapshotRepo.unlock_encrypted_device(), Device.unmount(), Main.unmount_target_device(), Device.unmount_udisks(), Main.update_partitions(), and UsersBox.UsersBox().
| void TeeJee.Logging.log_error | ( | string | message, |
| bool | highlight = false, | ||
| bool | is_warning = false ) |
Definition at line 74 of file TeeJee.Logging.vala.
References dos_log, err_log, Error, LOG_COLORS, LOG_ENABLE, log_error(), LOG_TIMESTAMP, and TeeJee.Misc.timestamp().
Referenced by AppExcludeEntry.add_app_exclude_entries_from_home(), AppExcludeEntry.add_app_exclude_entries_from_path(), CronTab.add_job(), CronTab.add_script_file(), Device.automount(), Device.automount_udisks(), Device.automount_udisks_iso(), AsyncTask.begin(), Main.check_btrfs_layout_system(), Main.check_dependencies(), SnapshotBackendBox.check_for_btrfs_tools(), AppGtk.check_if_admin(), Main.clean_logs(), SnapshotRepo.cleanup_symlink_dir(), Main.cleanup_unmount_devices(), AppConsole.confirm_restore(), AppLock.create(), Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_btrfs(), Main.create_snapshot_with_rsync(), SnapshotRepo.create_symlinks(), Main.delete_begin(), SnapshotRepo.delete_directory(), SnapshotRepo.delete_directory_thread(), BastionGuardImport.TimeshiftImporter.detect(), TeeJee.FileSystem.dir_create(), TeeJee.FileSystem.dir_delete(), TeeJee.FileSystem.dir_delete_recursive(), TeeJee.FileSystem.dir_is_empty(), TeeJee.FileSystem.dir_list_names(), TeeJee.ProcessHelper.exec_script_async(), TeeJee.ProcessHelper.exec_script_sync(), TeeJee.ProcessHelper.exec_sync(), TerminalWindow.execute_script(), TimeoutCounter.exit_on_timeout(), CronTab.export(), TeeJee.FileSystem.file_copy(), TeeJee.FileSystem.file_delete(), TeeJee.FileSystem.file_get_symlink_target(), TeeJee.FileSystem.file_is_symlink(), TeeJee.FileSystem.file_line_count(), TeeJee.FileSystem.file_move(), TeeJee.FileSystem.file_read(), TeeJee.FileSystem.file_read_array(), TeeJee.FileSystem.file_write(), Device.find_child_devices_using_dmsetup(), BastionGuardImport.TimeshiftImporter.find_device_by_uuid(), Device.get_block_devices_using_blkid(), Device.get_block_devices_using_lsblk(), Main.get_btrfs_version_array(), TeeJee.ProcessHelper.get_process_children(), Main.get_space_needed_for_rsync_snapshot(), TeeJee.System.get_username_from_uid(), Main.import_timeshift_config_if_available(), DeleteFileTask.init_regular_expressions(), RsyncSpaceCheckTask.init_regular_expressions(), RsyncTask.init_regular_expressions(), Main.initialize_repo(), CronTab.install(), TimeoutCounter.kill_process_on_timeout(), Main.load_app_config(), MainWindow.load_css(), MainWindow.load_language_preference(), SmbMount.load_saved_shares(), SnapshotRepo.load_snapshots(), MainWindow.load_theme_preference(), BastionGuardImport.TimeshiftImporter.load_timeshift_config(), log_error(), Device.luks_unlock(), Main.Main(), AppConsole.map_devices(), BastionGuardImport.TimeshiftImporter.migrate(), Device.mount(), SmbMount.mount(), BastionGuardImport.TimeshiftImporter.mount_backup_device(), Main.mount_target_devices(), MainWindow.on_close_request(), AppConsole.parse_arguments(), AppGtk.parse_arguments(), SystemUser.parse_line_passwd(), RsyncTask.parse_log(), RsyncLogBox.parse_log_file(), BastionGuardImport.TimeshiftImporter.parse_snapshot(), SetupWizardWindow.probe_timeshift_snapshot_count(), FileItem.query_file_info(), FileItem.query_file_info_basic(), Main.query_subvolume_id(), Main.query_subvolume_info(), Main.query_subvolume_quota(), Snapshot.read_control_file(), AsyncTask.read_stderr(), AppConsole.read_stdin_device(), AppConsole.read_stdin_device_mounts(), AppConsole.read_stdin_grub_install(), AppConsole.read_stdin_restore_confirm(), AppConsole.read_stdin_snapshot(), AsyncTask.read_stdout(), AppLock.remove(), Subvolume.remove(), Snapshot.remove_btrfs(), CronTab.remove_job(), CronTab.remove_script_file(), MainWindow.restart_application(), RestoreBox.restore(), Subvolume.restore(), Main.restore_execute_rsync(), Main.restore_snapshot(), Main.save_app_config(), TeeJee.ProcessHelper.save_bash_script_temp(), MainWindow.save_language_preference(), MainWindow.save_theme_preference(), BastionGuardImport.TimeshiftImporter.scan_snapshots(), AppConsole.select_grub_device(), AppConsole.select_snapshot(), AppConsole.select_snapshot_device(), AppConsole.select_snapshot_for_deletion(), AppConsole.select_snapshot_for_restore(), Snapshot.Snapshot(), AppConsole.start_application(), TerminalWindow.start_shell(), BackupBox.take_snapshot(), Device.unmount(), BastionGuardImport.TimeshiftImporter.unmount_backup_device(), Device.unmount_udisks(), BastionGuardImport.TimeshiftImporter.update_bgbackup_config(), Snapshot.update_control_file(), Main.update_partitions(), Main.validate_cmd_tags(), Snapshot.write_control_file(), SmbMount.write_shares(), and AsyncTask.write_stdin().
| void TeeJee.Logging.log_msg | ( | string | message, |
| bool | highlight = false ) |
Definition at line 39 of file TeeJee.Logging.vala.
References dos_log, Error, LOG_COLORS, LOG_ENABLE, log_msg(), LOG_TIMESTAMP, and TeeJee.Misc.timestamp().
Referenced by CronTab.add_job(), CronTab.add_script_file(), SnapshotRepo.auto_remove(), Device.automount_udisks_iso(), BackupDeviceBox.change_backup_device(), Main.check_and_remove_timeshift_btrfs(), AppConsole.check_if_admin(), Main.clean_logs(), Main.cleanup_unmount_devices(), AppConsole.confirm_restore(), AppLock.create(), Main.create_pre_restore_snapshot_btrfs(), Main.create_snapshot(), Main.create_snapshot_for_tag(), Main.create_snapshot_with_btrfs(), Main.create_snapshot_with_rsync(), SnapshotRepo.delete_directory_thread(), TeeJee.FileSystem.dir_create(), TeeJee.FileSystem.dir_delete(), CronTab.export(), Main.fix_crypttab_file(), Main.fix_fstab_file(), Main.get_restore_messages(), Main.get_space_needed_for_rsync_snapshot(), Main.import_timeshift_config_if_available(), Main.initialize_repo(), BackupWindow.initialize_tab(), DeleteWindow.initialize_tab(), CronTab.install(), Main.live_system(), Main.load_app_config(), log_debug(), log_msg(), Device.luks_lock(), Device.luks_unlock(), AppConsole.map_devices(), Device.mount(), SmbMount.mount(), AppGtk.parse_arguments(), RsyncTask.parse_log(), SnapshotRepo.print_status(), Main.query_subvolume_quota(), AppConsole.read_stdin_device(), AppConsole.read_stdin_device_mounts(), AppConsole.read_stdin_grub_install(), AppConsole.read_stdin_restore_confirm(), AppConsole.read_stdin_snapshot(), Subvolume.remove(), SnapshotRepo.remove_all(), Snapshot.remove_btrfs(), SnapshotRepo.remove_invalid(), CronTab.remove_job(), SnapshotRepo.remove_marked_for_deletion(), Snapshot.remove_rsync(), CronTab.remove_script_file(), SnapshotRepo.remove_untagged(), Subvolume.restore(), Main.restore_current_console(), Main.restore_execute_btrfs(), Main.restore_execute_rsync(), Main.restore_other_console(), Main.restore_other_gui(), AppConsole.restore_snapshot(), Main.restore_snapshot(), Main.save_app_config(), AppConsole.select_grub_device(), AppConsole.select_snapshot(), AppConsole.select_snapshot_device(), Main.set_first_run_flag(), AppConsole.start_application(), Device.test_all(), and Snapshot.write_control_file().
| void TeeJee.Logging.log_to_file | ( | string | message, |
| bool | highlight = false ) |
Definition at line 135 of file TeeJee.Logging.vala.
References dos_log, Error, log_to_file(), and TeeJee.Misc.timestamp().
Referenced by log_to_file(), Main.restore_current_console(), and Main.restore_other_console().
| DataOutputStream TeeJee.Logging.dos_log |
Definition at line 31 of file TeeJee.Logging.vala.
Referenced by log_debug(), log_error(), log_msg(), log_to_file(), and Main.Main().
| string TeeJee.Logging.err_log |
Definition at line 32 of file TeeJee.Logging.vala.
Referenced by log_error().
| bool TeeJee.Logging.LOG_COLORS = true |
Definition at line 35 of file TeeJee.Logging.vala.
Referenced by log_error(), and log_msg().
| bool TeeJee.Logging.LOG_COMMANDS = false |
Definition at line 37 of file TeeJee.Logging.vala.
Referenced by Main.create_snapshot_with_btrfs(), AppConsole.parse_arguments(), and Main.parse_some_arguments().
| bool TeeJee.Logging.LOG_DEBUG = false |
Definition at line 36 of file TeeJee.Logging.vala.
Referenced by Main.detect_system_devices(), Device.get_block_devices_using_blkid(), Device.get_disk_space_using_df(), Main.load_app_config(), log_debug(), Main.Main(), AppConsole.parse_arguments(), AppGtk.parse_arguments(), Main.parse_some_arguments(), and Main.save_app_config().
| bool TeeJee.Logging.LOG_ENABLE = true |
Definition at line 33 of file TeeJee.Logging.vala.
Referenced by log_debug(), log_error(), log_msg(), AppConsole.main(), and AppConsole.start_application().
| bool TeeJee.Logging.LOG_TIMESTAMP = false |
Definition at line 34 of file TeeJee.Logging.vala.
Referenced by log_error(), log_msg(), AppConsole.main(), and AppConsole.parse_arguments().