Liking cljdoc? Tell your friends :D

automaton-core.log

Main entrypoint to automaton core logging, defines basic levels that we use to log.

Logical order of logs is: trace -> debug -> info -> warn -> error -> fatal

Design decision:

  • the log is relying on configuration namespace, so nothing will be logged before that
  • the log api is hosted in a cljc file so log is accessible to namespaces in cljc
    • Rationle:
      • deciding to push code in cljc should not prevent to log
      • postponing the decision to host code in frontend or backend is an objective
    • Consequence:
      • This namespace is the entrypoint for both clj and cljs implementations
Main entrypoint to automaton core logging, defines basic levels that we use to log.

Logical order of logs is:
trace -> debug -> info -> warn -> error -> fatal

Design decision:
* the log is relying on configuration namespace, so nothing will be logged before that
* the log api is hosted in a `cljc` file so log is accessible to namespaces in cljc
   * Rationle:
      * deciding to push code in cljc should not prevent to log
      * postponing the decision to host code in frontend or backend is an objective
   * Consequence:
      * This namespace is the entrypoint for both clj and cljs implementations
raw docstring

cljs-env?clj/s

(cljs-env? env)

Take the &env from a macro, and tell whether we are expanding into cljs.

Take the &env from a macro, and tell whether we are expanding into cljs.
raw docstring

debugclj/smacro

(debug & message)

You are providing diagnostic information in a thorough manner with DEBUG. It's long and contains more information than you'll need when gg using the application. The DEBUG logging level is used to retrieve data that is required to debug, troubleshoot, or test an application. This guarantees that the application runs smoothly.

You are providing diagnostic information in a thorough manner with DEBUG. It's long and contains more information than you'll need when gg using the application. The DEBUG logging level is used to retrieve data that is required to debug, troubleshoot, or test an application. This guarantees that the application runs smoothly.
raw docstring

debug-dataclj/smacro

(debug-data data & additional-message)

Like debug, but first argument is expected to be a map with usefull more detailed data.

Like debug, but first argument is expected to be a map with usefull more detailed data.
raw docstring

debug-exceptionclj/smacro

(debug-exception exception & additional-message)

Like debug, but focused on exceptions.

Like debug, but focused on exceptions.
raw docstring

debug-formatclj/smacro

(debug-format fmt & args)

Like debug, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like debug, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

errorclj/smacro

(error & message)

This ERROR indicates that something critical in your application has failed. This log level is used when a serious issue is preventing the application's functionalities from functioning properly. The application will continue to run for the most part, but it will need to be handled at some point.

This ERROR indicates that something critical in your application has failed. This log level is used when a serious issue is preventing the application's functionalities from functioning properly. The application will continue to run for the most part, but it will need to be handled at some point.
raw docstring

error-dataclj/smacro

(error-data data & additional-message)

Like error, but first argument is expected to be a map with usefull more detailed data.

Like error, but first argument is expected to be a map with usefull more detailed data.
raw docstring

error-exceptionclj/smacro

(error-exception exception & additional-message)

Like error, but focused on exceptions.

Like error, but focused on exceptions.
raw docstring

error-formatclj/smacro

(error-format fmt & args)

Like error, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like error, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

fatalclj/smacro

(fatal & message)

FATAL indicates that the application is about to prevent a major problem or corruption. The FATAL level of logging indicates that the application's situation is critical, such as when a critical function fails. If the application is unable to connect to the data store, for example, you can utilise the FATAL log level.

FATAL indicates that the application is about to prevent a major problem or corruption. The FATAL level of logging indicates that the application's situation is critical, such as when a critical function fails. If the application is unable to connect to the data store, for example, you can utilise the FATAL log level.
raw docstring

fatal-dataclj/smacro

(fatal-data data & additional-message)

Like fatal, but first argument is expected to be a map with usefull more detailed data.

Like fatal, but first argument is expected to be a map with usefull more detailed data.
raw docstring

fatal-exceptionclj/smacro

(fatal-exception exception & additional-message)

Like fatal, but focused on exceptions.

Like fatal, but focused on exceptions.
raw docstring

fatal-formatclj/smacro

(fatal-format fmt & args)

Like fatal, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like fatal, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

infoclj/smacro

(info & message)

INFO messages are similar to how applications normally behave. They describe what occurred. For example, if a specific service was stopped or started, or if something was added to the database. During normal operations, these entries are unimportant. The information written in the INFO log is usually useful, and you don't have to do anything with it.

INFO messages are similar to how applications normally behave. They describe what occurred. For example, if a specific service was stopped or started, or if something was added to the database. During normal operations, these entries are unimportant. The information written in the INFO log is usually useful, and you don't have to do anything with it.
raw docstring

info-dataclj/smacro

(info-data data & additional-message)

Like info, but first argument is expected to be a map with usefull more detailed data.

Like info, but first argument is expected to be a map with usefull more detailed data.
raw docstring

info-exceptionclj/smacro

(info-exception exception & additional-message)

Like info, but focused on exceptions.

Like info, but focused on exceptions.
raw docstring

info-formatclj/smacro

(info-format fmt & args)

Like info, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like info, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

stgyclj/s

Decides which strategy implementation to use for choosing the loggers.

Decides which strategy implementation to use for choosing the loggers.
raw docstring

traceclj/smacro

(trace & message)

Records all of the application's behaviour details. Its purpose is primarily diagnostic, and it is more granular and finer than the DEBUG log level. When you need to know what happened in your application or the third-party libraries you're using, utilise this log level. The TRACE log level can be used to query code parameters or analyse algorithm steps.

Records all of the application's behaviour details. Its purpose is primarily diagnostic, and it is more granular and finer than the DEBUG log level. When you need to know what happened in your application or the third-party libraries you're using, utilise this log level. The TRACE log level can be used to query code parameters or analyse algorithm steps.
raw docstring

trace-dataclj/smacro

(trace-data data & additional-message)

Like trace, but first argument is expected to be a map with usefull more detailed data.

Like trace, but first argument is expected to be a map with usefull more detailed data.
raw docstring

trace-exceptionclj/smacro

(trace-exception exception & additional-message)

Like trace, but focused on exceptions.

Like trace, but focused on exceptions.
raw docstring

trace-formatclj/smacro

(trace-format fmt & args)

Like trace, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like trace, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

warnclj/smacro

(warn & message)

When an unexpected application issue has been identified, the WARN log level is used. This indicates that you are unsure if the issue will recur or not. At this time, you may not notice any negative effects on your application. This is frequently an issue that prevents some processes from operating. However, this does not necessarily imply that the application has been affected. The code should, in fact, continue to function normally. If the issue recurs, you should examine these warnings at some point.

When an unexpected application issue has been identified, the WARN log level is used. This indicates that you are unsure if the issue will recur or not. At this time, you may not notice any negative effects on your application. This is frequently an issue that prevents some processes from operating. However, this does not necessarily imply that the application has been affected. The code should, in fact, continue to function normally. If the issue recurs, you should examine these warnings at some point.
raw docstring

warn-dataclj/smacro

(warn-data data & additional-message)

Like warn, but first argument is expected to be a map with usefull more detailed data.

Like warn, but first argument is expected to be a map with usefull more detailed data.
raw docstring

warn-exceptionclj/smacro

(warn-exception exception & additional-message)

Like warn, but focused on exceptions.

Like warn, but focused on exceptions.
raw docstring

warn-formatclj/smacro

(warn-format fmt & args)

Like warn, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.

Like warn, but uses clojure format function, so first argument is string to translate and rest is arguments to supply it with.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close