RFA log file rotation
Hello,
I’m
trying to use RFA built-in logging as described in the Reuters’ “ROBUST
FOUNDATION API V7.6 CONFIGURATION AND LOGGING GUIDE” but I can’t figure out how
to rotate the log files based on size or a date: unless I restart my
application, the log file will not rotate and grow indefinitely.
Could
you please help?
Here are the settings that I use:
<entry key="mountTrace" value="true"/>
<entry key="logFileName" value="RFA_RSSL.%u.%g.log"/>
<entry key="traceMsgDomains" value="NORMAL"/>
<entry key="ipcTraceFlags" value="31"/>
Best Answer
-
Hello jgoldin,
Your configuration is to enable RFA trace log file(showing incoming and outgoing messages sent/received to RFA) which rotating log file is not supported.
Even you can set “%g” which specify the generation number to distinguish rotated logs in the filename, RFA still writes only one log file with no limit size. For example, if you set logFileName to be RFA_RSSL%u%g.log, there will be only one RFA log file e.g. RFA_RSSL00.log while RFAJ application runs.0
Answers
-
Hello @jgoldin,
If you are running RFA Java, use Java logging, not RFA specific, to define:
"RFA Java Edition uses the Java Preferences API and the Java Logging API to manage its configuration and logging", you can use
-Djava.util.logging.config.file=/path/to/logger.properties
for example:
java.util.logging.FileHandler.count = 5
java.util.logging.FileHandler.limit = 50000If you are running RFA C++, use Config Database, to define:
"Configuration for the AppLogger component is retrieved from the Config Database with the same name as the logger itself". You can define
maxLogFileSize,
which will determine log file rotation into .OLD
Depending on how you are configuring your Config Database, in registry on Windows, or if you are configuring from file, or build config in code, please refer to App Logger section of the Config guide for the detailed description.
0 -
RFA Java uses J.U.L as its logging framework. So the question is: what capabilities does JUL have? (Google or SO is your friend, this is not something specifically related to RFA). Btw: as far as I remember JUL doesn't offer log rotation based on time, only on size. At least not out-of-the-box. For log rotation based on time you'll need to pipe through something like Apache's rotatelogs or write your own JUL Handler to do the job.
0 -
FYI: Links in comments text on this website are only shown when you hover over them. So you have to move the mouse over each sentence in my comment. Don't blame me, I didn't create this website. TR: Are you listening??
0 -
Unfortunately, this doesn't work. RFA simply ignores JUL configuration, either the property file or programmatic.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 624 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 692 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 10 Wealth Management Web Services
- 91 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛