Dustin Getz
2017-08-04 13:03:49 UTC
I'll try to help you out, logging is neither simple nor easy and i remember
being pretty frustrated myself to get this stuff sorted.
Which process is generating logs? As Stu wrote there are 1+N processes that
generate logs - the transactor, and each peer. The peer logs are most
interesting, because they will intermingle with your application logs since
same process. I dont even know how my transactor logs are configured, i
have never had to look at them yet. I run the transactor in a docker
container (not sure if this is okay to do) and stdout gets scooped into the
docker log driver.
Here is my application dev logback config:
https://gist.github.com/dustingetz/d8860cfe1951a5a47b00ee2ae3a08ecf
Lets start at the bottom. Lines 15-18 define namespaces and the log level
for those namespace, I have datomic peer set to Warn, and my own code set
to All. There are other namespaces, for example pedestal is chatty, i dont
know what the defaults are.
L11 is my stdout logger. Any log at WARN or higher is sent to stdout, which
is my cursive repl in dev. L3 is the configuration for the stdout log.
Note the link to the logback documentation on line 1.
being pretty frustrated myself to get this stuff sorted.
Which process is generating logs? As Stu wrote there are 1+N processes that
generate logs - the transactor, and each peer. The peer logs are most
interesting, because they will intermingle with your application logs since
same process. I dont even know how my transactor logs are configured, i
have never had to look at them yet. I run the transactor in a docker
container (not sure if this is okay to do) and stdout gets scooped into the
docker log driver.
Here is my application dev logback config:
https://gist.github.com/dustingetz/d8860cfe1951a5a47b00ee2ae3a08ecf
Lets start at the bottom. Lines 15-18 define namespaces and the log level
for those namespace, I have datomic peer set to Warn, and my own code set
to All. There are other namespaces, for example pedestal is chatty, i dont
know what the defaults are.
L11 is my stdout logger. Any log at WARN or higher is sent to stdout, which
is my cursive repl in dev. L3 is the configuration for the stdout log.
Note the link to the logback documentation on line 1.
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.