Skip to content

Commit

Permalink
v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Mar 30, 2015
1 parent 1757e62 commit e9012d0
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ build/Release
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules
.npm
*.npm
/*.npm
/.npm

# OSX.gitignore
# https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
Expand Down
Empty file modified .npm/package/.gitignore
100644 → 100755
Empty file.
Empty file modified .npm/package/README
100644 → 100755
Empty file.
46 changes: 44 additions & 2 deletions .npm/package/npm-shrinkwrap.json
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions ostrio:loggerfile.coffee
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ Meteor.log.add "File", (level, message, data = null, userId) ->

Meteor.log.file.path = path
Meteor.log.file.format = (time, level, message, data, userId) ->
"#{time.getDate()}-#{time.getMonth()}-#{time.getFullYear()} #{time.getHours()}:#{time.getMinutes()}:#{time.getSeconds()} | [#{level}] | Message: \"#{message}\" | User: #{userId} | data: #{data}\r\n"
month = time.getMonth() + 1
"#{time.getDate()}-#{month}-#{time.getFullYear()} #{time.getHours()}:#{time.getMinutes()}:#{time.getSeconds()} | [#{level}] | Message: \"#{message}\" | User: #{userId} | data: #{data}\r\n"

Meteor.log.file.fileNameFormat = (time) ->
"#{time.getDate()}-#{time.getMonth()}-#{time.getFullYear()}.log"
month = time.getMonth() + 1
"#{time.getDate()}-#{month}-#{time.getFullYear()}.log"


if !fs.existsSync "#{path}"
Expand Down
8 changes: 3 additions & 5 deletions package.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
Package.describe({
name: 'ostrio:loggerfile',
version: '0.0.4',
version: '0.0.5',
summary: 'Simply store application logs into file within ostrio:logger package',
git: 'https://github.com/VeliovGroup/Meteor-logger-file',
documentation: 'README.md'
});

Package.onUse(function(api) {
api.versionsFrom('1.0.3.1');
api.use('coffeescript', ['client', 'server']);
api.use('meteorhacks:[email protected]');
api.use('ostrio:[email protected]', ['client', 'server']);
api.versionsFrom('1.0');
api.use(['coffeescript', 'ostrio:[email protected]'], ['client', 'server']);
api.addFiles('ostrio:loggerfile.coffee', ['client', 'server']);
});

Expand Down

0 comments on commit e9012d0

Please sign in to comment.