Skip to content

Instantly share code, notes, and snippets.

@jainnancy
Created August 31, 2018 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jainnancy/b1508cc676da00b834668d09da5e4993 to your computer and use it in GitHub Desktop.
Save jainnancy/b1508cc676da00b834668d09da5e4993 to your computer and use it in GitHub Desktop.
Client class is the class which will actually call the logging methods.
package com.knoldus
object Client extends App {
val logger = LoggerProxy.getLogger(this.getClass.getName)
logger.info("Log Contains IP address: 127.0.0.1")
logger.debug("UserName: jainnancy trying to sign in")
logger.error("Password: abxyz is wrong ")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment