Logging improvements
This commit is contained in:
@@ -151,8 +151,8 @@ namespace MileageTraker.Web.ViewModels.Log
|
|||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return string.Format(
|
return string.Format(
|
||||||
"vehicle: {0}, odo: {1}, type: {2}, city: {3}, gas: {4}, purpose: {5}, date: {6}",
|
"vehicle: {0}, odo: {1}, type: {2}, city: {3}, gas: {4}, purpose: {5}, date: {6}, user: {7}",
|
||||||
VehicleId, EndOdometer, LogType, CityName, GasPurchased, Purpose, Date.ToShortDateString());
|
VehicleId, EndOdometer, LogType, CityName, GasPurchased, Purpose, Date.ToShortDateString(), UserFullName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,5 +46,12 @@ namespace MileageTraker.Web.ViewModels.User
|
|||||||
Mapper.Map(this, user);
|
Mapper.Map(this, user);
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return string.Format(
|
||||||
|
"FullName: {0}, UserName: {1}, email: {2}",
|
||||||
|
FullName, Username, Email);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -52,5 +52,12 @@ namespace MileageTraker.Web.ViewModels.User
|
|||||||
user.FullName = FullName;
|
user.FullName = FullName;
|
||||||
user.Email = Email;
|
user.Email = Email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return string.Format(
|
||||||
|
"FullName: {0}, UserName: {1}, email: {2}",
|
||||||
|
FullName, Username, Email);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user