Initialize crate for the Logging trait

This commit is contained in:
George Kaklamanos 2023-11-30 16:57:45 +02:00
parent 892650a544
commit 8573516f4f
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D
3 changed files with 20 additions and 0 deletions

View file

@ -9,4 +9,5 @@ members = [
"labadoor-common",
"labadoor-open",
"labadoor-acl",
"labadoor-logging",
]

View file

@ -0,0 +1,6 @@
[package]
name = "labadoor-logging"
version = "0.1.0"
edition = "2021"
[dependencies]

View file

@ -0,0 +1,13 @@
pub struct LogEntry {
pub method: String,
pub username: String,
pub resource: String,
}
pub trait Logging {
fn lookup(&self) {
todo!();
}
fn append(&self, time: String, method: String, username: String, resource: String);
}