Tech Off Post

Single Post Permalink

View Thread: Error-Logging Class, input please.
  • User profile image
    Secret​Software

    you have to provide more information about how you implemented the business logics of your web-application.

    You can create a user class, and in that user class, define options in the form of a switch statement.

    switch (UserRequest)
    {
        case "A":
           Console.WriteLine ("user {0} has done {1} at {2}", userClass.UserName, userClass.Accessed, DateTime.Now.ToString());
           //etc...
        default:
           break;
    }


    it depends on your implementation.