0001 /** 0002 * Copyright IBM Corporation 2015 0003 * 0004 * Licensed under the Apache License, Version 2.0 (the "License"); 0005 * you may not use this file except in compliance with the License. 0006 * You may obtain a copy of the License at 0007 * 0008 * http://www.apache.org/licenses/LICENSE-2.0 0009 * 0010 * Unless required by applicable law or agreed to in writing, software 0011 * distributed under the License is distributed on an "AS IS" BASIS, 0012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0013 * See the License for the specific language governing permissions and 0014 * limitations under the License. 0015 **/ 0016 0017 import LoggerAPI 0018 import HeliumLogger 0019 0020 Log.logger = HeliumLogger() 0021 0022 Log.verbose("Hello World") 0023 0024 Log.warning("This is a warning") 0025 0026 Log.error("This is an error") 0027 0028 Log.logger = nil 0029 0030 Log.verbose("Hello World") 0031 0032 Log.warning("This is a warning") 0033 0034 Log.error("This is an error") 0035 0036 0037