Skip to content

Commit

Permalink
add logging implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Nov 11, 2023
1 parent ebf50f4 commit 3ef38c5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ discord-rich-presence = "0.2.3"
regex = "1.10.2"
runas = "1.1.0"
sysinfo = "0.29.10"
simple-logging = "2.0.2"
log = "0.4.20"

[target.'cfg(target_os = "windows")'.dependencies]
dll-syringe = "0.15.2"
Expand Down
3 changes: 3 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mod injector;
mod query;
mod samp;

use log::LevelFilter;
use runas;
use std::time::Instant;
use tauri::Manager;
Expand Down Expand Up @@ -125,6 +126,8 @@ fn get_samp_favorite_list() -> String {
}

fn main() {
simple_logging::log_to_file("omp-launcher.log", LevelFilter::Info).unwrap();

discord::initialize_drpc();
tauri::Builder::default()
.setup(|app| {
Expand Down

0 comments on commit 3ef38c5

Please sign in to comment.