Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Logging in 10.2 loglines are truncated afterlittle more than 5000 characters : how to avoid that ?

Solved667 views6th June 2024
2
Cristel Van Landeghem [DevOps Advocate]468 29th March 2024 0 Comments

In Debug level we want to know exact the json contents that came in.  Sometimes it is much more than 5000 characters.

Previously this was no problem at all.

Now we have installed 10.2, and in there lines > 5000 characters are only written partialy written to the logfile => unusable for debugging.

How can we change this unwanted behaviour in 10.2 ?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 6th June 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Wouter Demuynck [SLC] [DevOps Advocate]5.93K Posted 3rd April 2024 0 Comments

Hi Cristel,

The 5K limit for loglines has been added for very good reasons, including process crashes on huge loglines and the inability to still see other loglines in between larger ones. It is a general protection against rogue logging. The 5K limit is a good compromise which protects the system while still allowing relatively large messages to be logged in case of need.

Some alternatives approaches could include:

  • Writing into a separate file aside from the protocol.Log method, e.g. using File.AppendAllText
  • Creating a debug textbox parameter in the driver in which the data is dumped, so you can inspect it afterwards
  • Writing chunks in a loop (as previously suggested), if the logging really needs to end up in the element logfile
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 6th June 2024
3
Laurens Moutton [SLC] [DevOps Enabler]8.78K Posted 29th March 2024 5 Comments

Hi,

I have the same problem to be able to write out larger content for debugging purposes.

That fixed limit was introduced by RN that can be found here.

Unfortunately there is no way to disable or change that limit. In my case, when I know that a larger debug content is expected, I’m including a wrapper method in the QAction to split up the content into smaller parts and write out those ones.

Something like:
for (int i = 0; i < allLog.Length; i += 5000)
{
    int remainingChars = allLog.Length – i;
    int charCount = remainingChars > 5000 ? 5000 : remainingChars;
    if (charCount <= 0)
    {
        break;
    }

    protocol.Log(8, 5, allLog.Substring(i, charCount));
}

Then afterwards in logging it’s copy and paste work to combine it to get the original message again.

I know it’s indeed not ideal but it’s the only workaround that I could come up with to still be able to have some debug information when requested.

Regards,

Cristel Van Landeghem [DevOps Advocate] Posted new comment 2nd April 2024
Cristel Van Landeghem [DevOps Advocate] commented 29th March 2024

It is a pity that functionalities just disapear after upgrade. Skyline keep pushing to convince to upgrade, but on the same time : each upgrade there is a downgrade of the usability.
Since 10.2 is installed on my localhost: I have 2 a 3 blue screens a day.
Since 10.2 installation of DMA on our validation systems is much more vulnerable and succeeds never from the first time.
At this moment > 75% of our 10.2 DMA installations are Not OK, while all our 10.1 DMA installations work perfect.

Since 10.2 is installed on my localhost a simple restart does not work anymore : I have to manually stop Skyline processes, and do a manually restart, while in 10.1 : just push a button and 30 secs later DMA was running again, now it takes 5 minutes

Edib Šupić [SLC] [DevOps Catalyst] commented 29th March 2024

Hi Cristel,
have you tried using C:Skyline DataMinerToolsDataMiner Restart DataMiner And SLNet.bat instead? It would at least save you from having to kill all SL processes manually, I know it’s not a solution to your issues, but it may at least help a bit.

Wale Oguntoyinbo [SLC] [DevOps Advocate] commented 29th March 2024

Upgrades can indeed on those rare occasions throw you those curve balls, but the advise will always be to continue keeping your system updated.
With Dataminer today on 10.4 there is a high chance that the issues you are facing are already addressed and you are just an update away to return to stability. Do reach out to our support team to assist further on any peculiar issues with your DMS.

Cristel Van Landeghem [DevOps Advocate] commented 2nd April 2024

Tried using C:Skyline DataMinerToolsDataMiner Restart DataMiner And SLNet.bat instead : yes, but if the restart button does not work, stop and restart bat files should be used separately and in between Kill manually the remaining DMA processes.

Cristel Van Landeghem [DevOps Advocate] commented 2nd April 2024

10.4 ?
It will be already a huge semi-refactoring effort to move to 10.3, so 10.4…

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs