Please analyze the following code file and determine whether it belongs…
- User
Assistant: User: Please analyze the following code file and determine whether it belongs to any of the provided modules based on the listed module descriptions. Note that the provided list of modules may not be exhaustive, and some files may not belong to any of the modules. If the code belongs to a module, Only output the module name, without any explanation or additional information; otherwise, return 'None' if it does not belong to any module.
Modules : { "UI": "Handles the front-end user interface, consisting of HTML, CSS, and JavaScript files generated by the Angular framework. It processes user requests and interacts with the server using AJAX for data retrieval and client-side interactions.""Test Driver": "Facilitates automated regression testing and handles transmission of test data in JSON format. It performs Java testing using TestNG and JavaScript unit-testing with Jest. It also sets up a simulated web server for servlet-level tests and automates end-to-end testing using Selenium Java." "Logic": "Manages the business logic of TEAMMATES, including handling relationships between entities, managing transactions, input value sanitization, access control rights, and interfacing with GAE-provided or third-party APIs." "Storage": "Performs CRUD operations on data entities, validation of data, and abstraction of GQL queries, hiding the complexities of datastore from the Logic component." "Common": "Contains utility classes, custom exceptions, and data transfer objects used across the entire application for easy consolidation and transfer of structured data." "E2E": "Handles end-to-end testing and load & performance testing, providing helpers, abstractions of browser pages, and test cases for E2E tests and L&P tests." "Client": "Contains scripts for administrative tasks, such as migrating data to a new schema and calculating statistics. This module connects directly to the application back-end for administrative purposes." }
Code: package teammates.common.util; /** * Allows any component of the application to log messages at appropriate levels. */ @SuppressWarnings("PMD.MoreThanOneLogger") // class is designed as a facade for two different loggers public final class Logger { private final java.util.logging.Logger standardLog; private final java.util.logging.Logger errorLog; private Logger() { StackTraceElement logRequester = getLoggerSource(); String loggerName = logRequester == null ? "null" : logRequester.getClassName(); this.standardLog = java.util.logging.Logger.getLogger(loggerName + "-out"); this.standardLog.setUseParentHandlers(false); this.standardLog.addHandler(new StdOutConsoleHandler()); this.errorLog = java.util.logging.Logger.getLogger(loggerName + "-err"); } public static Logger getLogger() { return new Logger(); } /** * Logs a message at FINE level. */ public void fine(String message) { standardLog.fine(formatLogMessage(message, LogSeverity.DEBUG)); } /** * Logs a message at INFO level. */ public void info(String message) { standardLog.info(formatLogMessage(message, LogSeverity.INFO)); } /** * Logs an instance startup event. */ public void startup() { instance("STARTUP"); } /** * Logs an instance shutdown event. */ public void shutdown() { instance("SHUTDOWN"); } @SuppressWarnings("PMD.SystemPrintln") private void instance(String instanceEvent) { String instanceId = Config.getInstanceId(); String shortenedInstanceId = instanceId; if (shortenedInstanceId.length() > 32) { shortenedInstanceId = shortenedInstanceId.substring(0, 32); } InstanceLogDetails details = new InstanceLogDetails(); details.setInstanceId(instanceId); details.setInstanceEvent(instanceEvent); String message = "Instance " + instanceEvent.toLowerCase() + ": " + shortenedInstanceId; Map<String, Object> payload = new HashMap<>(); payload.put("message", message); payload.put("severity", LogSeverity.INFO); Map<String, Object> detailsSpecificPayload = JsonUtils.fromJson(JsonUtils.toCompactJson(details), new TypeToken<Map<String, Object>>(){}.getType()); payload.putAll(detailsSpecificPayload); // Need to use println as the logger is disabled when the instance is shutting down System.out.println(JsonUtils.toCompactJson(payload)); } /** * Logs an HTTP request. */ public void request(HttpServletRequest request, int statusCode, String message) { request(request, statusCode, message, new RequestLogUser(), null, null); } /** * Logs an HTTP request. */ public void request(HttpServletRequest request, int statusCode, String message, RequestLogUser userInfo, String requestBody, String actionClass) { long timeElapsed = RequestTracer.getTimeElapsedMillis(); String method = request.getMethod(); String requestUrl = request.getRequestURI(); RequestLogDetails details = new RequestLogDetails(); details.setResponseStatus(statusCode); details.setResponseTime(timeElapsed); details.setRequestMethod(method); details.setRequestUrl(reque - Assistant
Common