Comments (4)
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.
it works,but only when the handle of hVmm close,it will flush,i recommend add a flush interval.
from memprocfs.
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.
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)
- Disconnecting within seconds HOT 8
- [BUG] vmmsharp Vmm.MemReadArray HOT 2
- VMMDLL_Map_GetThread return failed HOT 3
- Challenges on Ubuntu 23.10 desktop HOT 1
- Rust API does not find libpdbcrust.so HOT 4
- vmmWinInit_TryInitialize: Initialization Failed. Unable to locate valid DTB. #2 VmmProc: Unable to auto-identify operating system for PROC file system mount. Specify PageDirectoryBase (DTB/CR3) in -cr3 option if value if known. MOUNT: INFO: PROC file system not mounted. HOT 2
- Scatter read does not read consistently HOT 9
- dma help? HOT 1
- [question]Can I call an exported function and get the return? HOT 1
- symbols fail on Windows when there are non-ascii characters in the MemProcFS path. HOT 6
- a doubt about a reading with memprocfs and scatter memory HOT 1
- Cant start correctly x86 build HOT 2
- MemProcFS: Failed to connect to memory acquisition device. - vmware HOT 1
- MemProcFS: Error file system plugins in vmm.dll! HOT 2
- Ubuntu/aarch64 - Java API: vmm.VmmException: Native call to vmm failed! HOT 5
- VmmScatterMemory crashes with option FLAG_NOCACHE HOT 12
- Issues loading VMRS file (Hyper-V checkpoint) HOT 5
- DEVICE: FAIL: unable to parse elf header MemProcFS: Failed to connect to memory acquisition device. HOT 4
- MemProcFS: Failed to load initial memory map from: '...' HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memprocfs.