Hitachi

uCosminexus Application Server Expansion Guide


8.6.1 Creating and setting loggers

You create a logger by specifying logger names. The contents that you specified while setting a system are used for creating a logger.

With each application, you acquire the logger created by specified logger name and output a log by using the acquired logger. Using the methods of the Logger class, you can create a logger and specify the log output. The specified log is converted to LogRecord, passed to the handler, and output to a log file or a console.

In addition, you can also specify filters, log levels, and handlers used in loggers, for choosing the log in logger, as and when required.