Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Exercise 6: logs files are empty #191

Open
Oqulent opened this issue Jun 16, 2020 · 0 comments
Open

Exercise 6: logs files are empty #191

Oqulent opened this issue Jun 16, 2020 · 0 comments

Comments

@Oqulent
Copy link

Oqulent commented Jun 16, 2020

OS: Ubuntu server 20.04
Cardano-node version: 1.13.0
Node runs in Tmux.

The exercise 6 has a section where we set up logging to be saved in a file as follows:

"setupScribes": [
{
"scFormat": "ScText",
"scKind": "StdoutSK",
"scName": "stdout",
"scRotation": null
},
{
"scFormat": "ScText",
"scKind": "FileSK",
"scName": "logs/mainnet.log"
}
]

This setup, used in conjunction with LiveView, creates log files that are empty.

My config:

{
"ApplicationName": "cardano-sl",
"ApplicationVersion": 0,
"GenesisFile": "ff-genesis.json",
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 0,
"LastKnownBlockVersion-Minor": 0,
"Protocol": "TPraos",
"RequiresNetworkMagic": "RequiresMagic",
"TraceBlockFetchClient": true,
"TraceBlockFetchDecisions": true,
"TraceBlockFetchProtocol": false,
"TraceBlockFetchProtocolSerialised": false,
"TraceBlockFetchServer": false,
"TraceChainDb": true,
"TraceChainSyncBlockServer": false,
"TraceChainSyncClient": false,
"TraceChainSyncHeaderServer": false,
"TraceChainSyncProtocol": false,
"TraceDNSResolver": true,
"TraceDNSSubscription": true,
"TraceErrorPolicy": true,
"TraceForge": true,
"TraceHandshake": false,
"TraceIpSubscription": true,
"TraceLocalChainSyncProtocol": false,
"TraceLocalErrorPolicy": true,
"TraceLocalHandshake": false,
"TraceLocalTxSubmissionProtocol": false,
"TraceLocalTxSubmissionServer": false,
"TraceMempool": true,
"TraceMux": false,
"TraceTxInbound": false,
"TraceTxOutbound": false,
"TraceTxSubmissionProtocol": false,
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"ViewMode": "LiveView",
"defaultBackends": [
"KatipBK"
],
"defaultScribes": [
[
"StdoutSK",
"stdout"
]
],
"hasEKG": 15001,
"hasPrometheus": [
"127.0.0.1",
15000
],
"minSeverity": "Debug",
"options": {
"mapBackends": {
"cardano.node-metrics": [
"EKGViewBK",
{
"kind": "UserDefinedBK",
"name": "LiveViewBackend"
}
],
"cardano.node.BlockFetchDecision.peers": [
"EKGViewBK",
{
"kind": "UserDefinedBK",
"name": "LiveViewBackend"
}
],
"cardano.node.ChainDB.metrics": [
"EKGViewBK",
{
"kind": "UserDefinedBK",
"name": "LiveViewBackend"
}
],
"cardano.node.Forge.metrics": [
"EKGViewBK"
],
"cardano.node.metrics": [
"EKGViewBK",
{
"kind": "UserDefinedBK",
"name": "LiveViewBackend"
}
]
},
"mapSubtrace": {
"#ekgview": {
"contents": [
[
{
"contents": "cardano.epoch-validation.benchmark",
"tag": "Contains"
},
[
{
"contents": ".monoclock.basic.",
"tag": "Contains"
}
]
],
[
{
"contents": "cardano.epoch-validation.benchmark",
"tag": "Contains"
},
[
{
"contents": "diff.RTS.cpuNs.timed.",
"tag": "Contains"
}
]
],
[
{
"contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark",
"tag": "StartsWith"
},
[
{
"contents": "diff.RTS.gcNum.timed.",
"tag": "Contains"
}
]
]
],
"subtrace": "FilterTrace"
},
"benchmark": {
"contents": [
"GhcRtsStats",
"MonotonicClock"
],
"subtrace": "ObservableTrace"
},
"cardano.epoch-validation.utxo-stats": {
"subtrace": "NoTrace"
},
"cardano.node-metrics": {
"subtrace": "Neutral"
},
"cardano.node.metrics": {
"subtrace": "Neutral"
}
}
},
"rotation": {
"rpKeepFilesNum": 10,
"rpLogLimitBytes": 5000000,
"rpMaxAgeHours": 24
},
"setupBackends": [
"KatipBK"
],
"setupScribes": [
{
"scFormat": "ScText",
"scKind": "StdoutSK",
"scName": "stdout",
"scRotation": null
},
{
"scFormat": "ScText",
"scKind": "FileSK",
"scName": "/home/cnode/logs/relay1.log"
}
]
}

image

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant