Log4View - Log level not showing correct log level messages - log4net

Unable to see the log messages according to the level selected. See the image below
I have selected INFO level but still it is showing all 3 types of message level.
This is my config file.. Appender 'AllAppender' is used.
If I choose Fields Level so it is showing me Fields and Grid level Log.Here you can see the level settings in Log4View

Related

Apache Chainsaw read in user defined properties

I'm using the snapshot version of apache chainsaw http://people.apache.org/~sdeboy and I just need to read in a text log file. It works fine when I'm reading in keyword columns ex: LEVEL, MESSAGE ect... but when I want to add in a user defined column, it doesn't work.
To read in the text file, I use TIMESTAMP: LOGGER: LEVEL : MESSAGE : PROP(TIER) as my log format where tier is my user defined property.
User-specified properties via PROP work fine in general - I'm pretty sure the issue is that the MESSAGE field is not the last field in your log format.
Can you reformat your log format to make MESSAGE the last field?
If you can't, I'd try replacing the MESSAGE entry in your log format with a user-defined property like PROP(TEXT).
Either option may work for you.

Need to set Default value in Kofax Capture Scan , Create Batch popup

I am using Kofax Capture scan 10.o
Requirement is to set the default value in Create batch window setting pages per batch to 20 instead of 0 everytime the user open this window.
Please let me know how this will be possible.
I am not aware of how to customize this window.
Thanks.
I don't believe it is possible to set this programmatically. However you could write a custom Scan panel that pops up a warning if a batch is trying to close without 20 pages. This would essentially do the same thing as the product functionality, but then the user doesn't have to enter the number each time.
To write a custom panel you would need to look into the Capture API documentation and the sample installed to CaptureSV\Source\Sample Projects\StdCust\OCXPanel.
Update:
Daniel is correct in saying that "Pages per batch" is not a batch field. It is a property of the batch that must be set on the Create Batch dialog. To my knowledge this cannot be set programmatically: I did not see a mention of it in the API guide.
Actual batch fields can have a default set as you can see in the Batch Class Properties dialog below. It can either be an explicit string or one of the curly brace auto replace values. And yes, you should be able to modify them programmatically from a workflow agent. Or if using KTM, enable foldering in the KTM project and then batch fields are mapped to the root folder and can be modified in KTM validation or from script in any KTM module.

salesforce - report permission issue data missing

Depending on the user, report data is missing when viewed via the dashboard.
-In security settings I gave organization-wide read/write permission.
-The reports are based on a two custom data objects with a master/child relationship (which is also set as read/write.)
-The report folder is also set as "read/write" and all users have permission.
Anything else that I forgot to check?
Thanks!
What error do you experience? "Insufficient privileges"? Or maybe report loads fine but just shows 0 rows?
When drilling down to the detailed report you need to make sure that
viewing user has at least Read permission in his Profile on both the master and child object
he must also has read permission to all fields used in the report (columns as well as filters. And if any of them is a formula -> check their source fields too).
Does the report use "My Opportunities" in the filters? Or unrealistic date criteria? If the dashboard wasn't refreshed in a while even date filters can cause you grief.
In some cases the Roles hierarchy is saved with the report - if the user sits in different branch of the role hierarchy than the dashboard's running user, you might have to flip it to your top level Role for example. Run the report, examine top part for Role names, adapt if needed and save it.
Perhaps the best way is to debug it is to login as this user and try to recreate this report from scratch. If you can't even select proper report type - this looks like scenario 1. If fields are missing - 2.

How can I have log4net help me log structured data inside %message?

We had our own custom logger in a C# program and now are trying to port to log4net.
In our app, there is further structure to what would normally go into %message. It may contain requestid, associated users, and other structure where requestid and user have internal significance to the program.
The hope is to ultimately be able to search on the fields inside %message, say requestid so we can collect all log entries with the same requestid for example.
Does log4net assist in anyway in creating own custom fields? The reason we ask is that currently the entire %message is logged as one string by default.
Any other suggestions on how to provide further formatting for %message? Otherwise we would have to pre-format %message inside our own code as, say, a CSV format
You can use event context to add additional structured data to a log entry:
http://www.beefycode.com/post/Log4Net-Tutorial-pt-6-Log-Event-Context.aspx
Depending on what kind of information you want to log you may need to create a wrapper that accepts additional parameters or else you have to write verbose code like this:
log4net.ThreadContext.Properties["myInformation"] = yourAdditionalInformation;
log.Info("info message");
Other information can be calculated and thus can be set once (for instance on application start up). Have a look at the calculated context properties in the above tutorial.

Task Category for custom ETW events showing as number instead of name in Event Viewer

I am implementing logging in our application using ETW.
I used ecmangen.exe to create the manifest with a set of custom events, templates, tasks and keywords.
I used mc.exe to compile and generated corresponding C# class for use in my code.
I used this generated class in our code to emit events.
I imported the manifest via wevtutil and captured events via event trace session (Win2K8R2 - Performance - Data Collector Sets)
When I open the generated trace file via Event Viewer, I see the events I was expecting. But I found that the custom task categories and keywords are showing in their numeric form, instead of their names.
Should these values be translated? Or am I going about this the wrong way?

Resources