Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom log #6

Open
matthis-d opened this issue Aug 10, 2015 · 1 comment
Open

Add custom log #6

matthis-d opened this issue Aug 10, 2015 · 1 comment

Comments

@matthis-d
Copy link
Owner

Add logging in the application to get more details on eventual errors.

@matthis-d matthis-d modified the milestone: Version 1.2 Aug 10, 2015
@matthis-d
Copy link
Owner Author

In application.properties, add this following code:

# Level for loggers on classes inside the root package "netgloo" (and its 
# sub-packages)
# Available levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
logging.level.com.matthisd.slacktcl= DEBUG

And in Java code, something like:

  // Define the logger object for this class
  private final Logger log = LoggerFactory.getLogger(this.getClass());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant