Dgraph logs requests for queries and mutations, and also provides audit logging capabilities with a Dgraph Enterprise license
Field | Definition |
---|---|
L | A single character, representing the log level (such as βIβ for INFO) |
mm | Month (zero padded; ie May is β05β) |
dd | Day (zero padded) |
hh:mm:ss.uuuuuu | Time in hours, minutes and fractional seconds |
threadid | Space-padded thread ID as returned by GetTID() |
file | Filename |
line | Line number |
msg | User-supplied message |
-v=3
(or -v=2
) which enables verbose
logging for everything. You can set this flag on both Zero and Alpha nodes.
/admin
endpoint of an
Alpha node (for example localhost:8080/admin
):
logRequest
in versions prior to v23.INFO
message to confirm that the mutation
has been applied:
\n
with a new line, any \t
with a tab
character and \"
with "
:
logRequest
to false
in the /admin
mutation.