private void ParseCallerInfo(CallerInformation callerInformation) { if (callerInformation.FilePath == null) { callerInformation.FilePath = String.Empty; } var pathPieces = callerInformation.FilePath.Split(new[] { @"Source\" }, StringSplitOptions.None); parsedCallerInfo = String.Format("[{0}::{1}:{2}] ", pathPieces.Last(), callerInformation.Name, callerInformation.Line); }
public CoreSerilogLogger(CallerInformation callerInformation) { ParseCallerInfo(callerInformation); }