
import env from '../env'
const full = (process.type !== 'renderer' && env.name !== 'test')

import pathmaker from '../util/pathmaker'
import mklog from '../util/log'
const loggerOpts = {
  sinks: {}
}
if (full) {
  loggerOpts.sinks.file = pathmaker.logPath()
}

export const logger = new mklog.Logger(loggerOpts)
export default logger

const log = mklog('itch')
export const opts = {logger}

if (full) {
  log(opts, `using electron ${process.versions.electron}`)
}

@@ -1,16 +1,71 @@
+%0Aimport ospath from 'path'%0Aimport mkdirp from 'mkdirp'%0A
 %0Aimport env from
@@ -215,16 +215,190 @@
 il/log'%0A
+%0A// naughty%0Atry %7B%0A  mkdirp.sync(ospath.dirname(pathmaker.logPath()))%0A%7D catch (e) %7B%0A  if (e.code !== 'EEXIST') %7B%0A    console.log(%60While creating logs dir: $%7Be.stack%7D%60)%0A  %7D%0A%7D%0A%0A
 const lo

Create logs directory on first launch