Skip to content

Commit 092a4b9

Browse files
committed
variable path fix
1 parent a22208b commit 092a4b9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Basic/logging-cordapp/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Logging CorDapp [<img src="../../webIDE.png" height=25 />](https://ide.corda.net/?folder=/home/coder/samples-java/Basic/yo-cordapp)
2-
1+
# Logging CorDapp
32

43
## Custom Logging
54

@@ -143,10 +142,10 @@ This will depend on your cordapp setup, if you're running your corda nodes all y
143142

144143
If you're running with the bootstrapped corda network you can run it by simply adding this argument to the result of the runnodes command.
145144

145+
> notice that all we're doing is adding this param to the command we'd otherwise use to run corda in order to specify the log file.
146146
147147
```
148148
'cd "/Users/corda/logging-cordapp/build/nodes/PartyA" ; "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java" "-Dcapsule.jvm.args=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006 -javaagent:drivers/jolokia-jvm-1.6.0-agent.jar=port=7006,logHandlerClass=net.corda.node.JolokiaSlf4jAdapter" "-Dname=PartyA" "-jar" "-Dlog4j.configurationFile=/Users/corda/logging-cordapp/build/resources/main/log4j2.xml" "/Users/corda/logging-cordapp/build/nodes/PartyA/corda.jar" ; and exit'
149-
150149
```
151150

152151

Basic/logging-cordapp/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
buildscript {
22
Properties constants = new Properties()
3-
// file("$projectDir/../constants.properties").withInputStream { constants.load(it) }
43
file("$projectDir/../constants.properties").withInputStream { constants.load(it) }
54

65
ext {
@@ -82,7 +81,7 @@ dependencies {
8281

8382
cordapp {
8483
info {
85-
name "Yo CorDapp"
84+
name "Logging CorDapp"
8685
vendor "Corda Open Source"
8786
targetPlatformVersion corda_platform_version
8887
minimumPlatformVersion corda_platform_version
@@ -103,7 +102,7 @@ task deployNodesJava(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
103102

104103
extraConfig = [
105104
custom: [
106-
jvmArgs: ["-Dlog4j.configurationFile=config/dev/log4j2.xml"]
105+
jvmArgs: ["-Dlog4j.configurationFile=$projectDir/config/dev/log4j2.xml"]
107106
]
108107
]
109108
}

0 commit comments

Comments
 (0)