Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by jgoldin · Feb 13, 2017 at 12:26 PM · treprfarfa-apirsslloggingtrace

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"/>

People who like this

0 Show 2
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Lars-at-Addicticks · Feb 13, 2017 at 02:15 PM 0
Share

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.

avatar image
Lars-at-Addicticks · Feb 13, 2017 at 02:18 PM 0
Share

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??

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pimchaya.wongrukun01 · Feb 13, 2017 at 09:38 PM

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.

Comment
jgoldin

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by zoya faberov · Feb 13, 2017 at 01:42 PM

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 = 50000

If 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.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
jgoldin · Mar 01, 2017 at 10:40 AM 0
Share

Unfortunately, this doesn't work. RFA simply ignores JUL configuration, either the property file or programmatic.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

Activate full message logs for RSSL connections in RFA C++

Temporary failure in name resolution

What does RespMsg::ClearCacheFlag actually do?

When Connection parameters are not correct the call to eventQueue.dispatch(....) hangs and never throws an exception.

RFA configuration parameters: service; rsslPort; hostName?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges