@sefranke/sf-simple-logger
v0.5.1
Published
A simple logger.
Downloads
6
Readme
��#� �A� �s�i�m�p�l�e� �l�o�g�g�e�r�
�
�
�
�U�s�e� �a� �s�i�m�p�l�e� �w�a�y� �t�o� �l�o�g� �w�i�t�h� �d�i�f�f�e�r�e�n�t� �l�o�g�l�e�v�e�l�s�.�
�
�
�
�T�h�e� �a�v�a�i�a�b�l�e� �l�o�g�l�e�v�e�l�s� �a�r�e�:�
�
�
�
�-� �l�v�l�N�o�n�e�
�
�-� �l�v�l�E�r�r�o�r�
�
�-� �l�v�l�W�a�r�n�
�
�-� �l�v�l�I�n�f�o�
�
�-� �l�v�l�D�e�b�u�g�
�
�-� �l�v�l�T�r�a�c�e�
�
�
�
�U�s�a�g�e� �i�s� �s�t�r�a�i�g�h�t�f�o�r�w�a�r�d�:�
�
�
�
��
��
�
�/�/� �G�i�v�e� �t�h�e� �l�o�g� �l�e�v�e�l�s� �y�o�u� �w�a�n�t� �t�o� �u�s�e� �a�s� �a� �p�a�r�a�m� �t�o� �t�h�e� �c�o�n�s�t�r�u�c�t�o�r�
�
�c�o�n�s�t� �l�o�g� �=� �n�e�w� �S�F�S�i�m�p�l�e�L�o�g�g�e�r�(�S�F�S�i�m�p�l�e�L�o�g�g�e�r�.�l�v�l�E�r�r�o�r� �+� �S�F�S�i�m�p�l�e�L�o�g�g�e�r�.�l�v�l�W�a�r�n� �+� �S�F�S�i�m�p�l�e�L�o�g�g�e�r�.�l�v�l�I�n�f�o�)�;�
�
�
�
�/�/� �C�a�l�l� �t�h�e� �l�o�g� �w�i�t�h� �t�h�e� �u�s�e�d� �l�o�g�l�e�v�e�l�
�
�l�o�g�.�l�o�g�(�S�F�S�i�m�p�l�e�L�o�g�g�e�r�.�l�v�l�D�e�b�u�g�,� �'�T�h�e� �i�s� �a� �d�e�b�u�g� �m�e�s�s�a�g�e�'�)�;�
�
�
�
�/�/� �O�r� �c�a�l�l� �t�h�e� �s�p�e�c�i�a�l� �m�e�t�h�o�d�s� �f�o�r� �e�a�c�h� �l�e�v�e�l� �d�i�r�e�c�t�l�y�.�
�
�l�o�g�.�l�o�g�D�e�b�u�g�(�'�T�h�i�s� �i�s� �a�n�o�t�h�e�r� �d�e�b�u�g� �m�e�s�s�a�g�e�)�;�
�
�l�o�g�.�l�o�g�I�n�f�o�(�'�P�u�t� �s�o�m�e� �u�s�e�f�u�l� �i�n�f�o� �i�n� �h�e�r�e�!�'�)�;�
�
�
��
�
�
�