Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Robodata
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
Robodata
Commits
2ddeeb06
Commit
2ddeeb06
authored
8 months ago
by
Terry D. Norbraten
Browse files
Options
Downloads
Patches
Plain Diff
[Terry N.] format edits
parent
acb64567
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CoTreceiver/src/main/java/edu/nps/moves/cot/net/CoTMsgReceiverDemo.java
+1
-0
1 addition, 0 deletions
...c/main/java/edu/nps/moves/cot/net/CoTMsgReceiverDemo.java
CoTreceiver/src/main/resources/log4j2.xml
+14
-10
14 additions, 10 deletions
CoTreceiver/src/main/resources/log4j2.xml
with
15 additions
and
10 deletions
CoTreceiver/src/main/java/edu/nps/moves/cot/net/CoTMsgReceiverDemo.java
+
1
−
0
View file @
2ddeeb06
...
@@ -44,6 +44,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -44,6 +44,7 @@ import java.util.concurrent.TimeUnit;
import
mil.army.usareur.g3.mcsd.CoTUtils.*
;
import
mil.army.usareur.g3.mcsd.CoTUtils.*
;
import
mil.army.usareur.g3.mcsd.CoTExample.CustomCoTparser
;
import
mil.army.usareur.g3.mcsd.CoTExample.CustomCoTparser
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
/** CoT message receiver (UPD, TCP) demonstration. This will start a CoT PLI
/** CoT message receiver (UPD, TCP) demonstration. This will start a CoT PLI
...
...
This diff is collapsed.
Click to expand it.
CoTreceiver/src/main/resources/log4j2.xml
+
14
−
10
View file @
2ddeeb06
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"WARN"
>
<Configuration
xmlns=
"https://logging.apache.org/xml/ns"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"
https://logging.apache.org/xml/ns
https://logging.apache.org/xml/ns/log4j-config-2.xsd"
>
<Properties>
<Properties>
<Property
name=
"
CONSOLE
_PATTERN"
>
%highlight{%-5level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green} %style{
%d{yyyy MMM dd HH:mm:ss 'GMT'Z}
}{blue}
[%t] %C:%L - %m%n
</Property
>
<Property
name=
"
LOG
_PATTERN"
value=
"[%-5level]
%d{yyyy MMM dd HH:mm:ss 'GMT'Z} [%t] %C:%L - %m%n
"
/
>
<Property
name=
"
LOG
_PATTERN"
>
[%-5level]
%d{yyyy MMM dd HH:mm:ss 'GMT'Z} [%t] %C:%L - %m%n
</Property
>
<Property
name=
"
CONSOLE
_PATTERN"
value=
"%highlight{%-5level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green} %style{
%d{yyyy MMM dd HH:mm:ss 'GMT'Z}
}{blue}
[%t] %C:%L - %m%n
"
/
>
</Properties>
</Properties>
<Appenders>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"${CONSOLE_PATTERN}"
/>
<PatternLayout
pattern=
"${CONSOLE_PATTERN}"
/>
</Console>
</Console>
<RollingFile
name=
"RollingLogFile"
fileName=
"logs/error.log
.0
"
filePattern=
"logs/error.log
.%i
"
>
<RollingFile
name=
"RollingLogFile"
fileName=
"logs/error.
0.
log"
filePattern=
"logs/error.
%i.
log"
>
<LevelRangeFilter
minLevel=
"FATAL"
maxLevel=
"ERROR"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<LevelRangeFilter
minLevel=
"FATAL"
maxLevel=
"ERROR"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<Policies>
<Policies>
<OnStartupTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
</Policies>
</Policies>
<DefaultRolloverStrategy
max=
"20"
/
>
<!--
<DefaultRolloverStrategy max="20"
fileIndex="min"/>--
>
</RollingFile>
</RollingFile>
<RollingFile
name=
"InfoLog"
fileName=
"logs/cot.log
.0
"
filePattern=
"logs/cot.log
.%i
"
>
<RollingFile
name=
"InfoLog"
fileName=
"logs/cot.
0.
log"
filePattern=
"logs/cot.
%i.
log"
>
<LevelRangeFilter
minLevel=
"WARN"
maxLevel=
"INFO"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<LevelRangeFilter
minLevel=
"WARN"
maxLevel=
"INFO"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<Policies>
<Policies>
<OnStartupTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
</Policies>
</Policies>
<DefaultRolloverStrategy
max=
"20"
fileIndex=
"min"
/>
<!--
<DefaultRolloverStrategy max="20" fileIndex="min"/>
-->
</RollingFile>
</RollingFile>
<RollingFile
name=
"DebugLog"
fileName=
"logs/debug.log
.0
"
filePattern=
"logs/debug.log
.%i
"
>
<RollingFile
name=
"DebugLog"
fileName=
"logs/debug.
0.
log"
filePattern=
"logs/debug.
%i.
log"
>
<LevelRangeFilter
minLevel=
"DEBUG"
maxLevel=
"DEBUG"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<LevelRangeFilter
minLevel=
"DEBUG"
maxLevel=
"DEBUG"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
<Policies>
<Policies>
<OnStartupTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
</Policies>
</Policies>
<DefaultRolloverStrategy
max=
"10"
/>
<!--
<DefaultRolloverStrategy max="10"/>
-->
</RollingFile>
</RollingFile>
</Appenders>
</Appenders>
<Loggers>
<Loggers>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment