     "Options from `.jsbeautifyrc` files starting from directory `#{path.dirname(filePath)}` and going up to root\n" +
     "```json\n#{JSON.stringify(projectOptions, undefined, 4)}\n```")
     logs = ""
-    logger = require('./logger')(__filename)
     subscription = logger.onLogging((msg) ->
 
         # console.log('logging', msg)

            path ?= require('path')
            # Get Grammar
            grammar = editor.getGrammar().name
            # Get language
            fileExtension = path.extname(filePath)
            languages = beautifier.languages.getLanguages({grammar, fileExtension})
            if languages.length < 1
                return
            # TODO: select appropriate language
            language = languages[0]
            # Get language config
            beautifyOnSave = atom.config.get("atom-beautify.language_#{language.namespace}_beautify_on_save")
            if beautifyOnSave
                beautifyFilePath(filePath, ->
                    buffer.reload()
                )
            )
        plugin.subscribe disposable

Beautifiers = require("./beautifiers")
beautifier = new Beautifiers()
defaultLanguageOptions = beautifier.options
logger = require('./logger')(__filename)

# Lazy loaded dependencies
fs = null
