It doesn't seems like log4view topics are popular on SO, hence I am duplicating my question here:
In logs that I have to frequently work with all warning messages has log level of Warning which doesn't match to Warn from predefined log4view log level and log4view learns Warning and defaults it's severity to Info.
In order to view my Warning messages properly I have to edit configuration and increase that severity as well as modify colouring scheme. However I have to do it per each receiver, which is a bit annoying when you need to review loads of different log files.
So I am looking for some default configuration which I can edit once and it will be applied to every new receiver.
However some config files I found (..\Program Files (x86)\Log4View\Log4View.exe.config or ..\AppData\Local\Prosa\Log4View.exe_StrongName_iip5vmgqywfkl4udjzgcyf2d1mnn3upk\188.8.131.52\user.config) as well as a part of registry that I looked at seems doesn't contain that information.
each receiver uses the same configuration where custom log levels are defined. Yet there was a bug, where those level values would not be loaded at start up under certain configuration setups.
We just released a new version (12.5.8) with a fix included. Feel free to check if this solves your problem and do not hesitate to contact us again if you encounter further problems.
Thank you, I just checked and seems your fix is working, however I can already see a little issue here: when you add a new receiver it resets styling for that log level (so before I configured my WARNING log level to have Tahoma 8.25 Pt. Font and 255, 128, 0 Forecolor and after I added new receiver it reset this setting to default values for all receivers)
I just tried to recreate your problem, but I had no luck. I did the following:
- Start Log4View, define the "WARNING" level and customize its font/color
- Open a log file, WARNING messages are displayed correctly
- Adding another receiver, WARNING messages are still represented correctly
- Close Log4View, save configuration
- Restart Log4View, WARNING messages are still displayed correctly
- Adding a third receiver, still everything is fine
- Remove all receivers, adding a new one, WARNING messages are again shown correctly
Am I missing a point? Could you send me detailed steps that cause your problem?
that's very strange, I followed your exact steps in the video, yet everything works fine for me. Are you using our latest version 12.5.8? Does this also happen once you start working with a clear new configuration?
When you open a log file ending with .txt, a previously saved configuration will be loaded, as you selected "Save Settings for txt files" when you added a .txt file previously. Yet the format settings for your custom log level have not yet been saved to that specific configuration.
To fix your problem, eighter add a .txt file, set the format for WARNING and click File -> Save File Extension Scheme -> OK or disable File Extension Schemes for .txt files by holding the Ctrl-Key while adding a .txt file and select "Always show Dialog" in the File Receiver dialog.
We think about adding a better way to manage extension schemes in our future releases.
In the meantime to remove your file extension schemes, you can navigate to C:\Users\<Username>\AppData\Roaming\Log4View. Here you find all extension schemes saved as <Extension>.l4v, you can remove them here.
When saving your general configuration (autosave is enabled by default), all these settings will be applied to any extension, as long as there is no scheme defined for it. An existing scheme would again override the general configuration.