The internal representation of caller location information.
For a list of all members of this type, see LocationInfo Members.
System.Object
���log4net.Core.LocationInfo
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
This class uses the System.Diagnostics.StackTrace
class to generate a call stack. The caller's information is then extracted from this stack.
The System.Diagnostics.StackTrace
class is not supported on the .NET Compact Framework 1.0 therefore caller location information is not available on that framework.
The System.Diagnostics.StackTrace
class has this to say about Release builds:
"StackTrace information will be most informative with Debug build configurations. By default, Debug builds include debug symbols, while Release builds do not. The debug symbols contain most of the file, method name, line number, and column information used in constructing StackFrame and StackTrace objects. StackTrace might not report as many method calls as expected, due to code transformations that occur during optimization."
This means that in a Release build the caller information may be incomplete or may not exist at all! Therefore caller location information cannot be relied upon in a Release build.
Namespace: log4net.Core
Assembly: log4net (in log4net.dll)
LocationInfo Members | log4net.Core Namespace