question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to set (batch) formatter in configuration file?

See original GitHub issue

Hello I tried to set batch Formatter in config file but I get exception 'Invalid cast from 'System.String' to 'Serilog.Sinks.Http.IBatchFormatter'

My configuration file looks like this:

{
    "Name": "DurableHttpUsingFileSizeRolledBuffers",
    "Args": {
        "requestUri": "http://localhost:31311",
        "batchFormatter": "ArrayBatchFormatter"
    }
}

Is there any way how to do this or is the only way to configure logger in code?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FantasticFiascocommented, Nov 6, 2019

If you find the sink useful, and already haven’t, don’t forget to give the repository a star.

Best of luck in all your future development endeavors!

1reaction
alesdvorakczcommented, Nov 5, 2019

Its perfect! Thank you once again for your amazing work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Batch configuration Formatter Conversion change
%d is used to format numbers only. Usually in fixed lenght file we pad string data with spaces and numbers with "0".
Read more >
Batch Server Configuration
The utility uses a set of templates to build a complete set of configuration files for the cluster, its threadpools and submitters at...
Read more >
Configuring the batch processor
You can configure the batch processor by modifying the configuration of the Batch.properties file.
Read more >
Java formatting and linting
To set the configuration file, right-click the .xml file and select Set the Checkstyle Configuration File. Set Checkstyle configuration file.
Read more >
Configure formatting rules | ReSharper Documentation
As there are many ways to configure formatter settings, ... To do so, select ReSharper | Windows | File Formatting Info from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found