There are 5 official log levels mentioned in <http...
# libpact_ffi-users
t
There are 5 official log levels mentioned in https://github.com/pact-foundation/pact-specification#logging-in-a-pact-library: • Error • Warn • Info • Debug • Trace To turn off log, there is another log level. But what is exactly its name? • Stub Server (Rust) called it
none
https://github.com/pact-foundation/pact-stub-server#command-line-interface • While Pact FFI (c header) called it
off
, as in
LevelFilter_Off
, https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.4.1/pact.h
u
Turning off logging is not really a log level, it is a flag that you do not want any logging. TBH, I don't really see the value of it. Why would you not want to at least see if there is an error?
t
Sorry I didn't ask about how it work. I just ask about naming because I saw inconsistent in the name. For now I think I can just ignore
none
and
off
y
Yeah I mapped the level filter of none when I was playing around, but if a user didn't want logging, they wouldn't call the logger init or apply methods
TBH, I don't really see the value of it. Why would you not want to at least see if there is an error?
Agreed, you probably at least want errors as a minimum, otherwise might as well just send it to the
/dev/null
in the sky hehe