Skip to content

Commit

Permalink
external logback config (agentlang-ai#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayfractl authored Mar 14, 2023
1 parent 7ac0931 commit c3301a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ If the command fails, install the dependency [`fractl-lein-template`](https://gi
Note: For now, use an absolute path for `<target_dir>`. The issue to handle relative paths is [here](https://github.com/fractl-io/fractl/issues/692).
This will create a the `<target_dir>/fractl-<version>` and copy the fractl uberjar, config.edn
and the `fractl` command-line tool there.

# Setting logging properties

export JAVA_OPTS=-Dlogback.configurationFile=/path/to/logback.xml
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fractl/lang/tools/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
spec (update-project-spec model (rd "project.clj"))
log-config (make-log-config model-name (model-version model))]
(wr "project.clj" spec)
(wr "resources/logback.xml" log-config :spit)
(wr "logback.xml" log-config :spit)
(let [cmps (mapv (partial copy-component wr model-name) components)]
(write-model-clj wr model-name cmps model)
(write-config-edn model-root wr)
Expand Down

0 comments on commit c3301a2

Please sign in to comment.