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.1
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
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛