Skip to content

Commit

Permalink
Updated config instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jul 8, 2023
1 parent b8e9fc8 commit f1cc060
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ Note that if you are building a release, you will need to manually add
the `logjam` dependency to your `relx` configuration, since it is
technically not a direct dependency of any application in your system.

If you're not using an OTP release and just want to set up logging based upon a config file with the above entry in it, you can do the following:

```lisp
(logjam:set-config #(path "./path/to/thing.config"))
```

This is what is done in `./scripts/demo.lfe`.

If you have the config data already in above format (proplist with a `kernel` entry), you can just do this:

```lisp
(logjam:set-config config-data)
```

### Logging Calls

If you call the logger functions directly, your log output will not have reference to the module, function, arity, or line number where the logging call was made. For this info, you need to use the `logger` or `logjam` macros.
Expand Down

0 comments on commit f1cc060

Please sign in to comment.