Giter VIP home page Giter VIP logo

Comments (4)

ufrisk avatar ufrisk commented on August 17, 2024

Use f:4 to log with verbose level to the file. There was an error in the guide previously which I've now resolved.

The file is not regularly flushed though so results may not be instantly visible. I should probably change that or at least add a force flush option, but it may also slow down execution significantly at the higher log levels so an option to flush after each log may be good.

If using the API on-screen console logging isn't enabled by default. You'd either have to enable it with the old way, i.e. command line options -printf and -v.

But since you're using the newer loglevel option it would be: f:4,4 if wishing to log at verbose level to both file and on-screen.

Let me know if it works better.

from memprocfs.

maoxian123 avatar maoxian123 commented on August 17, 2024

it works,but only when the handle of hVmm close,it will flush,i recommend add a flush interval.

from memprocfs.

ufrisk avatar ufrisk commented on August 17, 2024

I'll add a flush, possibly via some extra config option. I'm currently away over holidays though so it will have to wait until I get back home since my code signing certificate is on another computer.

from memprocfs.

ufrisk avatar ufrisk commented on August 17, 2024

I added this some time ago, but I forgot to update the documentation and also mention it here.

Nevertheless, there should now be a fflush option to the -loglevel option. See the documentation (click details): https://github.com/ufrisk/MemProcFS-dev/wiki/_CommandLine#-loglevel

It will do a fflush after each written log line if specified.

In your above example it should be like this now:

LPSTR args[] = { (LPSTR)"-device", (LPSTR)"fpga",(LPSTR)"-loglevel",(LPSTR)"fflush,f::4",(LPSTR)"-logfile",(LPSTR)"memprocfslog.txt"};
    hVmm = VMMDLL_Initialize(6, args);

I'm closing this issue since it should now be resolved. But if there should be any lingering issues or not work as intended please let me know and feel free to re-open the issue.

from memprocfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.