projects
/
anna.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5679a4c
)
Add unix timestamp milliseconds to dumpLog messages
author
Eduardo Ramos Testillano
<eduardo.ramos.testillano@ericsson.com>
Thu, 4 Feb 2016 22:42:51 +0000
(23:42 +0100)
committer
Eduardo Ramos Testillano
<eduardo.ramos.testillano@ericsson.com>
Thu, 4 Feb 2016 22:42:51 +0000
(23:42 +0100)
example/diameter/launcher/Launcher.cpp
patch
|
blob
|
history
example/diameter/launcher/OriginHost.cpp
patch
|
blob
|
history
example/diameter/launcher/resources/services_examples/services.dtd
patch
|
blob
|
history
diff --git
a/example/diameter/launcher/Launcher.cpp
b/example/diameter/launcher/Launcher.cpp
index
4cd4052
..
aaa80be
100644
(file)
--- a/
example/diameter/launcher/Launcher.cpp
+++ b/
example/diameter/launcher/Launcher.cpp
@@
-104,7
+104,7
@@
const char *ServicesDTD = "\
detailedLog: Insert detailed information at log files (timestamps, communication resources, etc.). Useful\n\
to analyze the messages flow along the sockets (specially on 'balance' mode). Default 'no'.\n\
dumpLog: Write to disk every incoming/outcoming message named as:\n\
detailedLog: Insert detailed information at log files (timestamps, communication resources, etc.). Useful\n\
to analyze the messages flow along the sockets (specially on 'balance' mode). Default 'no'.\n\
dumpLog: Write to disk every incoming/outcoming message named as:\n\
- '<originHost>.<hop by hop>.<end to end>.<message code>.<request|answer>.<type of event>.xml'\n\
+ '<
unix ms timestamp>.<
originHost>.<hop by hop>.<end to end>.<message code>.<request|answer>.<type of event>.xml'\n\
Default value 'no'.\n\
burstLog: Burst operations log file. By default '<originHost>.launcher.burst'. Empty string or \"null\" name, to disable.\n\
Warning: there is no rotation for log files (use logrotate or whatever). Output: dot (.) for each\n\
Default value 'no'.\n\
burstLog: Burst operations log file. By default '<originHost>.launcher.burst'. Empty string or \"null\" name, to disable.\n\
Warning: there is no rotation for log files (use logrotate or whatever). Output: dot (.) for each\n\
diff --git
a/example/diameter/launcher/OriginHost.cpp
b/example/diameter/launcher/OriginHost.cpp
index
32044b9
..
056031f
100644
(file)
--- a/
example/diameter/launcher/OriginHost.cpp
+++ b/
example/diameter/launcher/OriginHost.cpp
@@
-147,7
+147,10
@@
void OriginHost::writeLogFile(const anna::diameter::codec::Message &decodedMessa
}
if(a_dumpLog) {
}
if(a_dumpLog) {
- std::string name = getMyDiameterEngine()->getOriginHost();
+ // <unix ms timestamp>.<originHost>.<hop by hop>.<end to end>.<message code>.<request|answer>.<type of event>.xml
+ std::string name = anna::functions::asString((anna::Millisecond)anna::functions::millisecond());
+ name += ".";
+ name += getMyDiameterEngine()->getOriginHost();
name += ".";
name += anna::functions::asString(decodedMessage.getHopByHop());
name += ".";
name += ".";
name += anna::functions::asString(decodedMessage.getHopByHop());
name += ".";
diff --git
a/example/diameter/launcher/resources/services_examples/services.dtd
b/example/diameter/launcher/resources/services_examples/services.dtd
index
9cdcd88
..
00808a4
100755
(executable)
--- a/
example/diameter/launcher/resources/services_examples/services.dtd
+++ b/
example/diameter/launcher/resources/services_examples/services.dtd
@@
-63,7
+63,7
@@
detailedLog: Insert detailed information at log files (timestamps, communication resources, etc.). Useful
to analyze the messages flow along the sockets (specially on 'balance' mode). Default 'no'.
dumpLog: Write to disk every incoming/outcoming message named as:
detailedLog: Insert detailed information at log files (timestamps, communication resources, etc.). Useful
to analyze the messages flow along the sockets (specially on 'balance' mode). Default 'no'.
dumpLog: Write to disk every incoming/outcoming message named as:
- '<originHost>.<hop by hop>.<end to end>.<message code>.<request|answer>.<type of event>.xml'
+ '<
unix ms timestamp>.<
originHost>.<hop by hop>.<end to end>.<message code>.<request|answer>.<type of event>.xml'
Default value 'no'.
burstLog: Burst operations log file. By default '<originHost>.launcher.burst'. Empty string or "null" name, to disable.
Warning: there is no rotation for log files (use logrotate or whatever). Output: dot (.) for each
Default value 'no'.
burstLog: Burst operations log file. By default '<originHost>.launcher.burst'. Empty string or "null" name, to disable.
Warning: there is no rotation for log files (use logrotate or whatever). Output: dot (.) for each