You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logga has so far been built just for capturing errors, not outputting them anywhere. Since existing logging solutions aren't configurable with files in a nice way, we could add this functionality to logga for configurable output.
Would not log anywhere because the stencila.schema log level is error so handlers can not override it.
There could be a standard list of default locations to look for a configuration file in, or passed in from the command line. (logga.json in the project dir, ~/.logga.json, /etc/logga.json etc)
The text was updated successfully, but these errors were encountered:
Logga has so far been built just for capturing errors, not outputting them anywhere. Since existing logging solutions aren't configurable with files in a nice way, we could add this functionality to logga for configurable output.
The message
level
must exceed both the handler level, globallevel
and (if in a module) the modulelevel
to be logged somewhere.If a logging module name is not found in the
loggas
dictionary it will fall back to the defaults.Some examples:
Would log only to the console with a 🚨 emoji.
Would log to
/errors/only
,/path/to/file
, console and syslog. The syslog and file formats would be the globalformat
.Would not log anywhere as
stencila.encoda
has no handlers.Would not log anywhere because the
stencila.schema
log level iserror
so handlers can not override it.There could be a standard list of default locations to look for a configuration file in, or passed in from the command line. (
logga.json
in the project dir,~/.logga.json
,/etc/logga.json
etc)The text was updated successfully, but these errors were encountered: