Added loggers sample

This commit is contained in:
Daniel
2022-11-28 17:54:32 +01:00
parent e6584c4c15
commit d07b20a689
10 changed files with 213 additions and 1 deletions

20
loggers/srv/loggers.cds Normal file
View File

@@ -0,0 +1,20 @@
@rest service LogService {
@readonly entity Loggers : Logger {};
entity Logger {
key id : String;
level : String;
}
action format (
timestamp : Boolean,
level : Boolean,
tenant : Boolean,
reqid : Boolean,
id : Boolean,
);
action debug (logger : String) returns Logger;
action reset (logger : String) returns Logger;
}